charmap.h revision 87250c24aec9449eb615951cf537a2fcf709f1d8
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 15#include "android/keycode.h" 16 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 */ 37