blob: 74f8c71da09f1b324e3820e42d950e2f99c05f7c [file] [log] [blame]
Jeff Brown497a92c2010-09-12 17:55:08 -07001# Copyright (C) 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#
16# Generic key layout file for full alphabetic US English PC style external keyboards.
17#
Nick Felkerbe1d8112017-07-27 19:35:51 -070018# This file is intentionally very generic and is intended to support a broad range of keyboards.
Jeff Brown497a92c2010-09-12 17:55:08 -070019# Do not edit the generic key layout to support a specific keyboard; instead, create
20# a new key layout file with the required keyboard configuration.
21#
22
23key 1 ESCAPE
24key 2 1
25key 3 2
26key 4 3
27key 5 4
28key 6 5
29key 7 6
30key 8 7
31key 9 8
32key 10 9
33key 11 0
34key 12 MINUS
35key 13 EQUALS
36key 14 DEL
37key 15 TAB
38key 16 Q
39key 17 W
40key 18 E
41key 19 R
42key 20 T
43key 21 Y
44key 22 U
45key 23 I
46key 24 O
47key 25 P
48key 26 LEFT_BRACKET
49key 27 RIGHT_BRACKET
50key 28 ENTER
51key 29 CTRL_LEFT
52key 30 A
53key 31 S
54key 32 D
55key 33 F
56key 34 G
57key 35 H
58key 36 J
59key 37 K
60key 38 L
61key 39 SEMICOLON
62key 40 APOSTROPHE
63key 41 GRAVE
64key 42 SHIFT_LEFT
65key 43 BACKSLASH
66key 44 Z
67key 45 X
68key 46 C
69key 47 V
70key 48 B
71key 49 N
72key 50 M
73key 51 COMMA
74key 52 PERIOD
75key 53 SLASH
76key 54 SHIFT_RIGHT
77key 55 NUMPAD_MULTIPLY
78key 56 ALT_LEFT
79key 57 SPACE
80key 58 CAPS_LOCK
81key 59 F1
82key 60 F2
83key 61 F3
84key 62 F4
85key 63 F5
86key 64 F6
87key 65 F7
88key 66 F8
89key 67 F9
90key 68 F10
91key 69 NUM_LOCK
92key 70 SCROLL_LOCK
93key 71 NUMPAD_7
94key 72 NUMPAD_8
95key 73 NUMPAD_9
96key 74 NUMPAD_SUBTRACT
97key 75 NUMPAD_4
98key 76 NUMPAD_5
99key 77 NUMPAD_6
100key 78 NUMPAD_ADD
101key 79 NUMPAD_1
102key 80 NUMPAD_2
103key 81 NUMPAD_3
104key 82 NUMPAD_0
105key 83 NUMPAD_DOT
106# key 84 (undefined)
Yang Chuang7511f9c2012-02-10 15:18:26 +0800107key 85 ZENKAKU_HANKAKU
Jeff Browneee00492011-08-10 14:43:20 -0700108key 86 BACKSLASH
Jeff Brown497a92c2010-09-12 17:55:08 -0700109key 87 F11
110key 88 F12
Yang Chuang7511f9c2012-02-10 15:18:26 +0800111key 89 RO
Jeff Brown497a92c2010-09-12 17:55:08 -0700112# key 90 "KEY_KATAKANA"
113# key 91 "KEY_HIRAGANA"
Yang Chuang7511f9c2012-02-10 15:18:26 +0800114key 92 HENKAN
115key 93 KATAKANA_HIRAGANA
116key 94 MUHENKAN
Jeff Brown497a92c2010-09-12 17:55:08 -0700117key 95 NUMPAD_COMMA
118key 96 NUMPAD_ENTER
119key 97 CTRL_RIGHT
120key 98 NUMPAD_DIVIDE
121key 99 SYSRQ
122key 100 ALT_RIGHT
123# key 101 "KEY_LINEFEED"
124key 102 MOVE_HOME
125key 103 DPAD_UP
126key 104 PAGE_UP
127key 105 DPAD_LEFT
128key 106 DPAD_RIGHT
129key 107 MOVE_END
130key 108 DPAD_DOWN
131key 109 PAGE_DOWN
132key 110 INSERT
133key 111 FORWARD_DEL
134# key 112 "KEY_MACRO"
Jeff Brownb0418da2010-11-01 15:24:01 -0700135key 113 VOLUME_MUTE
Jeff Brown497a92c2010-09-12 17:55:08 -0700136key 114 VOLUME_DOWN
137key 115 VOLUME_UP
Michael Wright337d9d22014-04-22 15:03:48 -0700138key 116 POWER
Jeff Brown497a92c2010-09-12 17:55:08 -0700139key 117 NUMPAD_EQUALS
140# key 118 "KEY_KPPLUSMINUS"
141key 119 BREAK
142# key 120 (undefined)
143key 121 NUMPAD_COMMA
Yang Chuang7511f9c2012-02-10 15:18:26 +0800144key 122 KANA
145key 123 EISU
146key 124 YEN
Jeff Brown497a92c2010-09-12 17:55:08 -0700147key 125 META_LEFT
148key 126 META_RIGHT
Michael Wright337d9d22014-04-22 15:03:48 -0700149key 127 MENU
Jeff Brown497a92c2010-09-12 17:55:08 -0700150key 128 MEDIA_STOP
151# key 129 "KEY_AGAIN"
152# key 130 "KEY_PROPS"
153# key 131 "KEY_UNDO"
154# key 132 "KEY_FRONT"
Michael Wrightf6d7c672015-10-22 15:54:02 +0100155key 133 COPY
Jeff Brown497a92c2010-09-12 17:55:08 -0700156# key 134 "KEY_OPEN"
Michael Wrightf6d7c672015-10-22 15:54:02 +0100157key 135 PASTE
Jeff Brown497a92c2010-09-12 17:55:08 -0700158# key 136 "KEY_FIND"
Michael Wrightf6d7c672015-10-22 15:54:02 +0100159key 137 CUT
Jeff Brown497a92c2010-09-12 17:55:08 -0700160# key 138 "KEY_HELP"
Michael Wright337d9d22014-04-22 15:03:48 -0700161key 139 MENU
Jeff Brown6651a632011-11-28 12:59:11 -0800162key 140 CALCULATOR
Jeff Brown497a92c2010-09-12 17:55:08 -0700163# key 141 "KEY_SETUP"
Michael Wright337d9d22014-04-22 15:03:48 -0700164key 142 SLEEP
165key 143 WAKEUP
Jeff Brown497a92c2010-09-12 17:55:08 -0700166# key 144 "KEY_FILE"
167# key 145 "KEY_SENDFILE"
168# key 146 "KEY_DELETEFILE"
169# key 147 "KEY_XFER"
170# key 148 "KEY_PROG1"
171# key 149 "KEY_PROG2"
172key 150 EXPLORER
173# key 151 "KEY_MSDOS"
Michael Wright337d9d22014-04-22 15:03:48 -0700174key 152 POWER
Jeff Brown497a92c2010-09-12 17:55:08 -0700175# key 153 "KEY_DIRECTION"
176# key 154 "KEY_CYCLEWINDOWS"
177key 155 ENVELOPE
Jeff Brownd49c3472010-11-25 15:02:36 -0800178key 156 BOOKMARK
Jeff Brown497a92c2010-09-12 17:55:08 -0700179# key 157 "KEY_COMPUTER"
Michael Wright337d9d22014-04-22 15:03:48 -0700180key 158 BACK
Jeff Brown497a92c2010-09-12 17:55:08 -0700181key 159 FORWARD
182key 160 MEDIA_CLOSE
183key 161 MEDIA_EJECT
184key 162 MEDIA_EJECT
185key 163 MEDIA_NEXT
186key 164 MEDIA_PLAY_PAUSE
187key 165 MEDIA_PREVIOUS
188key 166 MEDIA_STOP
189key 167 MEDIA_RECORD
190key 168 MEDIA_REWIND
191key 169 CALL
192# key 170 "KEY_ISO"
Jeff Brown6651a632011-11-28 12:59:11 -0800193key 171 MUSIC
Jeff Brown497a92c2010-09-12 17:55:08 -0700194key 172 HOME
195# key 173 "KEY_REFRESH"
196# key 174 "KEY_EXIT"
197# key 175 "KEY_MOVE"
198# key 176 "KEY_EDIT"
199key 177 PAGE_UP
200key 178 PAGE_DOWN
201key 179 NUMPAD_LEFT_PAREN
202key 180 NUMPAD_RIGHT_PAREN
203# key 181 "KEY_NEW"
204# key 182 "KEY_REDO"
205# key 183 F13
206# key 184 F14
207# key 185 F15
208# key 186 F16
209# key 187 F17
210# key 188 F18
211# key 189 F19
212# key 190 F20
213# key 191 F21
214# key 192 F22
215# key 193 F23
216# key 194 F24
217# key 195 (undefined)
218# key 196 (undefined)
219# key 197 (undefined)
220# key 198 (undefined)
221# key 199 (undefined)
222key 200 MEDIA_PLAY
223key 201 MEDIA_PAUSE
224# key 202 "KEY_PROG3"
225# key 203 "KEY_PROG4"
226# key 204 (undefined)
227# key 205 "KEY_SUSPEND"
228# key 206 "KEY_CLOSE"
229key 207 MEDIA_PLAY
230key 208 MEDIA_FAST_FORWARD
231# key 209 "KEY_BASSBOOST"
232# key 210 "KEY_PRINT"
233# key 211 "KEY_HP"
234key 212 CAMERA
Jeff Brown6651a632011-11-28 12:59:11 -0800235key 213 MUSIC
Jeff Brown497a92c2010-09-12 17:55:08 -0700236# key 214 "KEY_QUESTION"
237key 215 ENVELOPE
238# key 216 "KEY_CHAT"
239key 217 SEARCH
240# key 218 "KEY_CONNECT"
241# key 219 "KEY_FINANCE"
242# key 220 "KEY_SPORT"
243# key 221 "KEY_SHOP"
244# key 222 "KEY_ALTERASE"
245# key 223 "KEY_CANCEL"
Michael Wright1df477a2013-01-31 16:19:18 -0800246key 224 BRIGHTNESS_DOWN
247key 225 BRIGHTNESS_UP
Jeff Brown497a92c2010-09-12 17:55:08 -0700248key 226 HEADSETHOOK
Jeff Brown497a92c2010-09-12 17:55:08 -0700249
Jeff Browne7b20292011-03-03 03:39:29 -0800250key 256 BUTTON_1
251key 257 BUTTON_2
252key 258 BUTTON_3
253key 259 BUTTON_4
254key 260 BUTTON_5
255key 261 BUTTON_6
256key 262 BUTTON_7
257key 263 BUTTON_8
258key 264 BUTTON_9
259key 265 BUTTON_10
260key 266 BUTTON_11
261key 267 BUTTON_12
262key 268 BUTTON_13
263key 269 BUTTON_14
264key 270 BUTTON_15
265key 271 BUTTON_16
266
Jeff Browncb1404e2011-01-15 18:14:15 -0800267key 288 BUTTON_1
268key 289 BUTTON_2
269key 290 BUTTON_3
270key 291 BUTTON_4
271key 292 BUTTON_5
272key 293 BUTTON_6
273key 294 BUTTON_7
274key 295 BUTTON_8
275key 296 BUTTON_9
276key 297 BUTTON_10
277key 298 BUTTON_11
278key 299 BUTTON_12
279key 300 BUTTON_13
280key 301 BUTTON_14
281key 302 BUTTON_15
282key 303 BUTTON_16
283
284
Jeff Brown497a92c2010-09-12 17:55:08 -0700285key 304 BUTTON_A
286key 305 BUTTON_B
287key 306 BUTTON_C
288key 307 BUTTON_X
289key 308 BUTTON_Y
290key 309 BUTTON_Z
291key 310 BUTTON_L1
292key 311 BUTTON_R1
293key 312 BUTTON_L2
294key 313 BUTTON_R2
295key 314 BUTTON_SELECT
296key 315 BUTTON_START
297key 316 BUTTON_MODE
298key 317 BUTTON_THUMBL
299key 318 BUTTON_THUMBR
300
301
302# key 352 "KEY_OK"
Jeff Brown80b27602012-04-25 18:35:46 -0700303key 353 DPAD_CENTER
Jeff Brown497a92c2010-09-12 17:55:08 -0700304# key 354 "KEY_GOTO"
305# key 355 "KEY_CLEAR"
306# key 356 "KEY_POWER2"
307# key 357 "KEY_OPTION"
308# key 358 "KEY_INFO"
309# key 359 "KEY_TIME"
310# key 360 "KEY_VENDOR"
311# key 361 "KEY_ARCHIVE"
Jeff Brownd49c3472010-11-25 15:02:36 -0800312key 362 GUIDE
Jeff Brown497a92c2010-09-12 17:55:08 -0700313# key 363 "KEY_CHANNEL"
314# key 364 "KEY_FAVORITES"
315# key 365 "KEY_EPG"
Jeff Brownd49c3472010-11-25 15:02:36 -0800316key 366 DVR
Jeff Brown497a92c2010-09-12 17:55:08 -0700317# key 367 "KEY_MHP"
318# key 368 "KEY_LANGUAGE"
319# key 369 "KEY_TITLE"
320# key 370 "KEY_SUBTITLE"
321# key 371 "KEY_ANGLE"
322# key 372 "KEY_ZOOM"
323# key 373 "KEY_MODE"
324# key 374 "KEY_KEYBOARD"
325# key 375 "KEY_SCREEN"
326# key 376 "KEY_PC"
Jeff Brownd49c3472010-11-25 15:02:36 -0800327key 377 TV
Jeff Brown497a92c2010-09-12 17:55:08 -0700328# key 378 "KEY_TV2"
329# key 379 "KEY_VCR"
330# key 380 "KEY_VCR2"
331# key 381 "KEY_SAT"
332# key 382 "KEY_SAT2"
333# key 383 "KEY_CD"
334# key 384 "KEY_TAPE"
335# key 385 "KEY_RADIO"
336# key 386 "KEY_TUNER"
337# key 387 "KEY_PLAYER"
338# key 388 "KEY_TEXT"
339# key 389 "KEY_DVD"
340# key 390 "KEY_AUX"
341# key 391 "KEY_MP3"
342# key 392 "KEY_AUDIO"
343# key 393 "KEY_VIDEO"
344# key 394 "KEY_DIRECTORY"
345# key 395 "KEY_LIST"
346# key 396 "KEY_MEMO"
Jeff Brown6651a632011-11-28 12:59:11 -0800347key 397 CALENDAR
Jeff Brown497a92c2010-09-12 17:55:08 -0700348# key 398 "KEY_RED"
349# key 399 "KEY_GREEN"
350# key 400 "KEY_YELLOW"
351# key 401 "KEY_BLUE"
Jeff Brownd49c3472010-11-25 15:02:36 -0800352key 402 CHANNEL_UP
353key 403 CHANNEL_DOWN
Jeff Brown497a92c2010-09-12 17:55:08 -0700354# key 404 "KEY_FIRST"
355# key 405 "KEY_LAST"
356# key 406 "KEY_AB"
357# key 407 "KEY_NEXT"
358# key 408 "KEY_RESTART"
359# key 409 "KEY_SLOW"
360# key 410 "KEY_SHUFFLE"
361# key 411 "KEY_BREAK"
362# key 412 "KEY_PREVIOUS"
363# key 413 "KEY_DIGITS"
364# key 414 "KEY_TEEN"
365# key 415 "KEY_TWEN"
366
Jeff Brown6651a632011-11-28 12:59:11 -0800367key 429 CONTACTS
Jeff Brown497a92c2010-09-12 17:55:08 -0700368
369# key 448 "KEY_DEL_EOL"
370# key 449 "KEY_DEL_EOS"
371# key 450 "KEY_INS_LINE"
372# key 451 "KEY_DEL_LINE"
373
374
375key 464 FUNCTION
376key 465 ESCAPE FUNCTION
377key 466 F1 FUNCTION
378key 467 F2 FUNCTION
379key 468 F3 FUNCTION
380key 469 F4 FUNCTION
381key 470 F5 FUNCTION
382key 471 F6 FUNCTION
383key 472 F7 FUNCTION
384key 473 F8 FUNCTION
385key 474 F9 FUNCTION
386key 475 F10 FUNCTION
387key 476 F11 FUNCTION
388key 477 F12 FUNCTION
389key 478 1 FUNCTION
390key 479 2 FUNCTION
391key 480 D FUNCTION
392key 481 E FUNCTION
393key 482 F FUNCTION
394key 483 S FUNCTION
395key 484 B FUNCTION
396
397
398# key 497 KEY_BRL_DOT1
399# key 498 KEY_BRL_DOT2
400# key 499 KEY_BRL_DOT3
401# key 500 KEY_BRL_DOT4
402# key 501 KEY_BRL_DOT5
403# key 502 KEY_BRL_DOT6
404# key 503 KEY_BRL_DOT7
405# key 504 KEY_BRL_DOT8
Jeff Brown6f2fba42011-02-19 01:08:02 -0800406
Michael Wright4cb42f32017-11-21 17:58:56 +0000407key 522 STAR
408key 523 POUND
Olivier Gay8840f1f2014-05-01 11:10:20 +0200409key 580 APP_SWITCH
Michael Wright1ce304bb2014-09-05 17:45:26 -0700410key 582 VOICE_ASSIST
Olivier Gay8840f1f2014-05-01 11:10:20 +0200411
Michael Wright1df477a2013-01-31 16:19:18 -0800412# Keys defined by HID usages
413key usage 0x0c006F BRIGHTNESS_UP
414key usage 0x0c0070 BRIGHTNESS_DOWN
Jeff Brown6f2fba42011-02-19 01:08:02 -0800415
416# Joystick and game controller axes.
417# Axes that are not mapped will be assigned generic axis numbers by the input subsystem.
418axis 0x00 X
419axis 0x01 Y
420axis 0x02 Z
421axis 0x03 RX
422axis 0x04 RY
423axis 0x05 RZ
Jeff Brown3a22fa02011-03-04 13:07:49 -0800424axis 0x06 THROTTLE
425axis 0x07 RUDDER
426axis 0x08 WHEEL
427axis 0x09 GAS
428axis 0x0a BRAKE
Jeff Brown6f2fba42011-02-19 01:08:02 -0800429axis 0x10 HAT_X
430axis 0x11 HAT_Y
Michael Wright58f5a612013-10-18 15:26:48 -0700431
432# LEDs
433led 0x00 NUM_LOCK
434led 0x01 CAPS_LOCK
435led 0x02 SCROLL_LOCK
436led 0x03 COMPOSE
437led 0x04 KANA
438led 0x05 SLEEP
439led 0x06 SUSPEND
440led 0x07 MUTE
441led 0x08 MISC
442led 0x09 MAIL
443led 0x0a CHARGING