blob: 5ac13675ab50cd609776c5d3e532ac8d3f46a460 [file] [log] [blame]
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08001/* Copyright (C) 2007-2008 The Android Open Source Project
2**
3** This software is licensed under the terms of the GNU General Public
4** License version 2, as published by the Free Software Foundation, and
5** may be copied, distributed, and modified under those terms.
6**
7** This program is distributed in the hope that it will be useful,
8** but WITHOUT ANY WARRANTY; without even the implied warranty of
9** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10** GNU General Public License for more details.
11*/
12#ifndef _android_charmap_h
13#define _android_charmap_h
14
David 'Digit' Turner87250c22009-09-17 16:45:03 -070015#include "android/keycode.h"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080016
17/* this defines a structure used to describe an Android keyboard charmap */
18typedef struct AKeyEntry {
19 unsigned short code;
20 unsigned short base;
21 unsigned short caps;
22 unsigned short fn;
23 unsigned short caps_fn;
24 unsigned short number;
25} AKeyEntry;
26
27typedef struct {
28 const AKeyEntry* entries;
29 int num_entries;
30 char name[ 32 ];
31} AKeyCharmap;
32
33extern const int android_charmap_count;
34extern const AKeyCharmap* android_charmaps[];
35
36#endif /* _android_charmap_h */