| The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 1 | /* 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' Turner | 87250c2 | 2009-09-17 16:45:03 -0700 | [diff] [blame^] | 15 | #include "android/keycode.h" |
| The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 16 | |
| 17 | /* this defines a structure used to describe an Android keyboard charmap */ |
| 18 | typedef 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 | |
| 27 | typedef struct { |
| 28 | const AKeyEntry* entries; |
| 29 | int num_entries; |
| 30 | char name[ 32 ]; |
| 31 | } AKeyCharmap; |
| 32 | |
| 33 | extern const int android_charmap_count; |
| 34 | extern const AKeyCharmap* android_charmaps[]; |
| 35 | |
| 36 | #endif /* _android_charmap_h */ |