VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
KeyCodes.h
1 /*
2  * Copyright (C) 2014 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef KEYCODES_H
18 #define KEYCODES_H
19 
26 enum KeyCode {
27  KEYCODE_UNKNOWN = 0,
28  KEYCODE_SOFT_LEFT = 1,
29  KEYCODE_SOFT_RIGHT = 2,
30  KEYCODE_HOME = 3,
31  KEYCODE_BACK = 4,
32  KEYCODE_CALL = 5,
33  KEYCODE_ENDCALL = 6,
34  KEYCODE_0 = 7,
35  KEYCODE_1 = 8,
36  KEYCODE_2 = 9,
37  KEYCODE_3 = 10,
38  KEYCODE_4 = 11,
39  KEYCODE_5 = 12,
40  KEYCODE_6 = 13,
41  KEYCODE_7 = 14,
42  KEYCODE_8 = 15,
43  KEYCODE_9 = 16,
44  KEYCODE_STAR = 17,
45  KEYCODE_POUND = 18,
46  KEYCODE_DPAD_UP = 19,
47  KEYCODE_DPAD_DOWN = 20,
48  KEYCODE_DPAD_LEFT = 21,
49  KEYCODE_DPAD_RIGHT = 22,
50  KEYCODE_DPAD_CENTER = 23,
51  KEYCODE_VOLUME_UP = 24,
52  KEYCODE_VOLUME_DOWN = 25,
53  KEYCODE_POWER = 26,
54  KEYCODE_CAMERA = 27,
55  KEYCODE_CLEAR = 28,
56  KEYCODE_A = 29,
57  KEYCODE_B = 30,
58  KEYCODE_C = 31,
59  KEYCODE_D = 32,
60  KEYCODE_E = 33,
61  KEYCODE_F = 34,
62  KEYCODE_G = 35,
63  KEYCODE_H = 36,
64  KEYCODE_I = 37,
65  KEYCODE_J = 38,
66  KEYCODE_K = 39,
67  KEYCODE_L = 40,
68  KEYCODE_M = 41,
69  KEYCODE_N = 42,
70  KEYCODE_O = 43,
71  KEYCODE_P = 44,
72  KEYCODE_Q = 45,
73  KEYCODE_R = 46,
74  KEYCODE_S = 47,
75  KEYCODE_T = 48,
76  KEYCODE_U = 49,
77  KEYCODE_V = 50,
78  KEYCODE_W = 51,
79  KEYCODE_X = 52,
80  KEYCODE_Y = 53,
81  KEYCODE_Z = 54,
82  KEYCODE_COMMA = 55,
83  KEYCODE_PERIOD = 56,
84  KEYCODE_ALT_LEFT = 57,
85  KEYCODE_ALT_RIGHT = 58,
86  KEYCODE_SHIFT_LEFT = 59,
87  KEYCODE_SHIFT_RIGHT = 60,
88  KEYCODE_TAB = 61,
89  KEYCODE_SPACE = 62,
90  KEYCODE_SYM = 63,
91  KEYCODE_EXPLORER = 64,
92  KEYCODE_ENVELOPE = 65,
93  KEYCODE_ENTER = 66,
94  KEYCODE_DEL = 67,
95  KEYCODE_GRAVE = 68,
96  KEYCODE_MINUS = 69,
97  KEYCODE_EQUALS = 70,
98  KEYCODE_LEFT_BRACKET = 71,
99  KEYCODE_RIGHT_BRACKET = 72,
100  KEYCODE_BACKSLASH = 73,
101  KEYCODE_SEMICOLON = 74,
102  KEYCODE_APOSTROPHE = 75,
103  KEYCODE_SLASH = 76,
104  KEYCODE_AT = 77,
105  KEYCODE_NUM = 78,
106  KEYCODE_HEADSETHOOK = 79,
107  KEYCODE_FOCUS = 80, // *Camera* focus
108  KEYCODE_PLUS = 81,
109  KEYCODE_MENU = 82,
110  KEYCODE_NOTIFICATION = 83,
111  KEYCODE_SEARCH = 84,
112  KEYCODE_MEDIA_PLAY_PAUSE= 85,
113  KEYCODE_MEDIA_STOP = 86,
114  KEYCODE_MEDIA_NEXT = 87,
115  KEYCODE_MEDIA_PREVIOUS = 88,
116  KEYCODE_MEDIA_REWIND = 89,
117  KEYCODE_MEDIA_FAST_FORWARD = 90,
118  KEYCODE_MUTE = 91,
119  KEYCODE_PAGE_UP = 92,
120  KEYCODE_PAGE_DOWN = 93,
121  KEYCODE_PICTSYMBOLS = 94,
122  KEYCODE_SWITCH_CHARSET = 95,
123  KEYCODE_BUTTON_A = 96,
124  KEYCODE_BUTTON_B = 97,
125  KEYCODE_BUTTON_C = 98,
126  KEYCODE_BUTTON_X = 99,
127  KEYCODE_BUTTON_Y = 100,
128  KEYCODE_BUTTON_Z = 101,
129  KEYCODE_BUTTON_L1 = 102,
130  KEYCODE_BUTTON_R1 = 103,
131  KEYCODE_BUTTON_L2 = 104,
132  KEYCODE_BUTTON_R2 = 105,
133  KEYCODE_BUTTON_THUMBL = 106,
134  KEYCODE_BUTTON_THUMBR = 107,
135  KEYCODE_BUTTON_START = 108,
136  KEYCODE_BUTTON_SELECT = 109,
137  KEYCODE_BUTTON_MODE = 110,
138  KEYCODE_ESCAPE = 111,
139  KEYCODE_FORWARD_DEL = 112,
140  KEYCODE_CTRL_LEFT = 113,
141  KEYCODE_CTRL_RIGHT = 114,
142  KEYCODE_CAPS_LOCK = 115,
143  KEYCODE_SCROLL_LOCK = 116,
144  KEYCODE_META_LEFT = 117,
145  KEYCODE_META_RIGHT = 118,
146  KEYCODE_FUNCTION = 119,
147  KEYCODE_SYSRQ = 120,
148  KEYCODE_BREAK = 121,
149  KEYCODE_MOVE_HOME = 122,
150  KEYCODE_MOVE_END = 123,
151  KEYCODE_INSERT = 124,
152  KEYCODE_FORWARD = 125,
153  KEYCODE_MEDIA_PLAY = 126,
154  KEYCODE_MEDIA_PAUSE = 127,
155  KEYCODE_MEDIA_CLOSE = 128,
156  KEYCODE_MEDIA_EJECT = 129,
157  KEYCODE_MEDIA_RECORD = 130,
158  KEYCODE_F1 = 131,
159  KEYCODE_F2 = 132,
160  KEYCODE_F3 = 133,
161  KEYCODE_F4 = 134,
162  KEYCODE_F5 = 135,
163  KEYCODE_F6 = 136,
164  KEYCODE_F7 = 137,
165  KEYCODE_F8 = 138,
166  KEYCODE_F9 = 139,
167  KEYCODE_F10 = 140,
168  KEYCODE_F11 = 141,
169  KEYCODE_F12 = 142,
170  KEYCODE_NUM_LOCK = 143,
171  KEYCODE_NUMPAD_0 = 144,
172  KEYCODE_NUMPAD_1 = 145,
173  KEYCODE_NUMPAD_2 = 146,
174  KEYCODE_NUMPAD_3 = 147,
175  KEYCODE_NUMPAD_4 = 148,
176  KEYCODE_NUMPAD_5 = 149,
177  KEYCODE_NUMPAD_6 = 150,
178  KEYCODE_NUMPAD_7 = 151,
179  KEYCODE_NUMPAD_8 = 152,
180  KEYCODE_NUMPAD_9 = 153,
181  KEYCODE_NUMPAD_DIVIDE = 154,
182  KEYCODE_NUMPAD_MULTIPLY = 155,
183  KEYCODE_NUMPAD_SUBTRACT = 156,
184  KEYCODE_NUMPAD_ADD = 157,
185  KEYCODE_NUMPAD_DOT = 158,
186  KEYCODE_NUMPAD_COMMA = 159,
187  KEYCODE_NUMPAD_ENTER = 160,
188  KEYCODE_NUMPAD_EQUALS = 161,
189  KEYCODE_NUMPAD_LEFT_PAREN = 162,
190  KEYCODE_NUMPAD_RIGHT_PAREN = 163,
191  KEYCODE_VOLUME_MUTE = 164,
192  KEYCODE_INFO = 165,
193  KEYCODE_CHANNEL_UP = 166,
194  KEYCODE_CHANNEL_DOWN = 167,
195  KEYCODE_ZOOM_IN = 168,
196  KEYCODE_ZOOM_OUT = 169,
197  KEYCODE_TV = 170,
198  KEYCODE_WINDOW = 171,
199  KEYCODE_GUIDE = 172,
200  KEYCODE_DVR = 173,
201  KEYCODE_BOOKMARK = 174,
202  KEYCODE_CAPTIONS = 175,
203  KEYCODE_SETTINGS = 176,
204  KEYCODE_TV_POWER = 177,
205  KEYCODE_TV_INPUT = 178,
206  KEYCODE_STB_POWER = 179,
207  KEYCODE_STB_INPUT = 180,
208  KEYCODE_AVR_POWER = 181,
209  KEYCODE_AVR_INPUT = 182,
210  KEYCODE_PROG_RED = 183,
211  KEYCODE_PROG_GREEN = 184,
212  KEYCODE_PROG_YELLOW = 185,
213  KEYCODE_PROG_BLUE = 186,
214  KEYCODE_APP_SWITCH = 187,
215  KEYCODE_BUTTON_1 = 188,
216  KEYCODE_BUTTON_2 = 189,
217  KEYCODE_BUTTON_3 = 190,
218  KEYCODE_BUTTON_4 = 191,
219  KEYCODE_BUTTON_5 = 192,
220  KEYCODE_BUTTON_6 = 193,
221  KEYCODE_BUTTON_7 = 194,
222  KEYCODE_BUTTON_8 = 195,
223  KEYCODE_BUTTON_9 = 196,
224  KEYCODE_BUTTON_10 = 197,
225  KEYCODE_BUTTON_11 = 198,
226  KEYCODE_BUTTON_12 = 199,
227  KEYCODE_BUTTON_13 = 200,
228  KEYCODE_BUTTON_14 = 201,
229  KEYCODE_BUTTON_15 = 202,
230  KEYCODE_BUTTON_16 = 203,
231  KEYCODE_LANGUAGE_SWITCH = 204,
232  KEYCODE_MANNER_MODE = 205,
233  KEYCODE_3D_MODE = 206,
234  KEYCODE_CONTACTS = 207,
235  KEYCODE_CALENDAR = 208,
236  KEYCODE_MUSIC = 209,
237  KEYCODE_CALCULATOR = 210,
238  KEYCODE_ZENKAKU_HANKAKU = 211,
239  KEYCODE_EISU = 212,
240  KEYCODE_MUHENKAN = 213,
241  KEYCODE_HENKAN = 214,
242  KEYCODE_KATAKANA_HIRAGANA = 215,
243  KEYCODE_YEN = 216,
244  KEYCODE_RO = 217,
245  KEYCODE_KANA = 218,
246  KEYCODE_ASSIST = 219,
247  KEYCODE_BRIGHTNESS_DOWN = 220,
248  KEYCODE_BRIGHTNESS_UP = 221,
249  KEYCODE_MEDIA_AUDIO_TRACK = 222,
250 };
251 
252 #endif // KEYCODES_H
KeyCode
Key codes used to uniquely identify hardware input keys.
Definition: KeyCodes.h:26