• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#value_indexed
2/* awk '{if (NF>1) {n=strtonum($2)}; printf("%d %s\n", n, $0)}' |sort -s -k1,1n |sed 's/^[0-9]* //' */
3KEY_RESERVED		0
4KEY_ESC			1
5KEY_1			2
6KEY_2			3
7KEY_3			4
8KEY_4			5
9KEY_5			6
10KEY_6			7
11KEY_7			8
12KEY_8			9
13KEY_9			10
14KEY_0			11
15KEY_MINUS		12
16KEY_EQUAL		13
17KEY_BACKSPACE		14
18KEY_TAB			15
19KEY_Q			16
20KEY_W			17
21KEY_E			18
22KEY_R			19
23KEY_T			20
24KEY_Y			21
25KEY_U			22
26KEY_I			23
27KEY_O			24
28KEY_P			25
29KEY_LEFTBRACE		26
30KEY_RIGHTBRACE		27
31KEY_ENTER		28
32KEY_LEFTCTRL		29
33KEY_A			30
34KEY_S			31
35KEY_D			32
36KEY_F			33
37KEY_G			34
38KEY_H			35
39KEY_J			36
40KEY_K			37
41KEY_L			38
42KEY_SEMICOLON		39
43KEY_APOSTROPHE		40
44KEY_GRAVE		41
45KEY_LEFTSHIFT		42
46KEY_BACKSLASH		43
47KEY_Z			44
48KEY_X			45
49KEY_C			46
50KEY_V			47
51KEY_B			48
52KEY_N			49
53KEY_M			50
54KEY_COMMA		51
55KEY_DOT			52
56KEY_SLASH		53
57KEY_RIGHTSHIFT		54
58KEY_KPASTERISK		55
59KEY_LEFTALT		56
60KEY_SPACE		57
61KEY_CAPSLOCK		58
62KEY_F1			59
63KEY_F2			60
64KEY_F3			61
65KEY_F4			62
66KEY_F5			63
67KEY_F6			64
68KEY_F7			65
69KEY_F8			66
70KEY_F9			67
71KEY_F10			68
72KEY_NUMLOCK		69
73KEY_SCROLLLOCK		70
74KEY_KP7			71
75KEY_KP8			72
76KEY_KP9			73
77KEY_KPMINUS		74
78KEY_KP4			75
79KEY_KP5			76
80KEY_KP6			77
81KEY_KPPLUS		78
82KEY_KP1			79
83KEY_KP2			80
84KEY_KP3			81
85KEY_KP0			82
86KEY_KPDOT		83
87
88KEY_ZENKAKUHANKAKU	85
89KEY_102ND		86
90KEY_F11			87
91KEY_F12			88
92KEY_RO			89
93KEY_KATAKANA		90
94KEY_HIRAGANA		91
95KEY_HENKAN		92
96KEY_KATAKANAHIRAGANA	93
97KEY_MUHENKAN		94
98KEY_KPJPCOMMA		95
99KEY_KPENTER		96
100KEY_RIGHTCTRL		97
101KEY_KPSLASH		98
102KEY_SYSRQ		99
103KEY_RIGHTALT		100
104KEY_LINEFEED		101
105KEY_HOME		102
106KEY_UP			103
107KEY_PAGEUP		104
108KEY_LEFT		105
109KEY_RIGHT		106
110KEY_END			107
111KEY_DOWN		108
112KEY_PAGEDOWN		109
113KEY_INSERT		110
114KEY_DELETE		111
115KEY_MACRO		112
116KEY_MUTE		113
117KEY_VOLUMEDOWN		114
118KEY_VOLUMEUP		115
119KEY_POWER		116
120KEY_KPEQUAL		117
121KEY_KPPLUSMINUS		118
122KEY_PAUSE		119
123KEY_SCALE		120
124
125KEY_KPCOMMA		121
126KEY_HANGEUL		122
127KEY_HANJA		123
128KEY_YEN			124
129KEY_LEFTMETA		125
130KEY_RIGHTMETA		126
131KEY_COMPOSE		127
132
133KEY_STOP		128
134KEY_AGAIN		129
135KEY_PROPS		130
136KEY_UNDO		131
137KEY_FRONT		132
138KEY_COPY		133
139KEY_OPEN		134
140KEY_PASTE		135
141KEY_FIND		136
142KEY_CUT			137
143KEY_HELP		138
144KEY_MENU		139
145KEY_CALC		140
146KEY_SETUP		141
147KEY_SLEEP		142
148KEY_WAKEUP		143
149KEY_FILE		144
150KEY_SENDFILE		145
151KEY_DELETEFILE		146
152KEY_XFER		147
153KEY_PROG1		148
154KEY_PROG2		149
155KEY_WWW			150
156KEY_MSDOS		151
157KEY_COFFEE		152
158KEY_ROTATE_DISPLAY	153
159KEY_CYCLEWINDOWS	154
160KEY_MAIL		155
161KEY_BOOKMARKS		156
162KEY_COMPUTER		157
163KEY_BACK		158
164KEY_FORWARD		159
165KEY_CLOSECD		160
166KEY_EJECTCD		161
167KEY_EJECTCLOSECD	162
168KEY_NEXTSONG		163
169KEY_PLAYPAUSE		164
170KEY_PREVIOUSSONG	165
171KEY_STOPCD		166
172KEY_RECORD		167
173KEY_REWIND		168
174KEY_PHONE		169
175KEY_ISO			170
176KEY_CONFIG		171
177KEY_HOMEPAGE		172
178KEY_REFRESH		173
179KEY_EXIT		174
180KEY_MOVE		175
181KEY_EDIT		176
182KEY_SCROLLUP		177
183KEY_SCROLLDOWN		178
184KEY_KPLEFTPAREN		179
185KEY_KPRIGHTPAREN	180
186KEY_NEW			181
187KEY_REDO		182
188
189KEY_F13			183
190KEY_F14			184
191KEY_F15			185
192KEY_F16			186
193KEY_F17			187
194KEY_F18			188
195KEY_F19			189
196KEY_F20			190
197KEY_F21			191
198KEY_F22			192
199KEY_F23			193
200KEY_F24			194
201
202KEY_PLAYCD		200
203KEY_PAUSECD		201
204KEY_PROG3		202
205KEY_PROG4		203
206KEY_DASHBOARD		204
207KEY_SUSPEND		205
208KEY_CLOSE		206
209KEY_PLAY		207
210KEY_FASTFORWARD		208
211KEY_BASSBOOST		209
212KEY_PRINT		210
213KEY_HP			211
214KEY_CAMERA		212
215KEY_SOUND		213
216KEY_QUESTION		214
217KEY_EMAIL		215
218KEY_CHAT		216
219KEY_SEARCH		217
220KEY_CONNECT		218
221KEY_FINANCE		219
222KEY_SPORT		220
223KEY_SHOP		221
224KEY_ALTERASE		222
225KEY_CANCEL		223
226KEY_BRIGHTNESSDOWN	224
227KEY_BRIGHTNESSUP	225
228KEY_MEDIA		226
229
230KEY_SWITCHVIDEOMODE	227
231
232KEY_KBDILLUMTOGGLE	228
233KEY_KBDILLUMDOWN	229
234KEY_KBDILLUMUP		230
235
236KEY_SEND		231
237KEY_REPLY		232
238KEY_FORWARDMAIL		233
239KEY_SAVE		234
240KEY_DOCUMENTS		235
241
242KEY_BATTERY		236
243
244KEY_BLUETOOTH		237
245KEY_WLAN		238
246KEY_UWB			239
247
248KEY_UNKNOWN		240
249
250KEY_VIDEO_NEXT		241
251KEY_VIDEO_PREV		242
252KEY_BRIGHTNESS_CYCLE	243
253KEY_BRIGHTNESS_AUTO	244
254KEY_DISPLAY_OFF		245
255
256KEY_WWAN		246
257
258#ifndef STRACE_WORKAROUND_FOR_KEY_RFKILL
259# define STRACE_WORKAROUND_FOR_KEY_RFKILL
260/*
261 * KEY_RFKILL and KEY_NUMERIC_A constants were introduced by Linux kernel
262 * commits v2.6.33~17^2~2 and v4.1-rc1~150^2~1^10~6, respectively.
263 * Apparently, RHEL6 introduced an alternative KEY_RFKILL constant
264 * with the same value as upstream KEY_NUMERIC_A.
265 * Downstream vendors are *not* allowed to do this.
266 * Ignore the system value of KEY_RFKILL.
267 */
268# undef KEY_RFKILL
269#endif
270KEY_RFKILL		247
271
272KEY_MICMUTE		248
273
274BTN_0			0x100
275BTN_1			0x101
276BTN_2			0x102
277BTN_3			0x103
278BTN_4			0x104
279BTN_5			0x105
280BTN_6			0x106
281BTN_7			0x107
282BTN_8			0x108
283BTN_9			0x109
284
285BTN_LEFT		0x110
286BTN_RIGHT		0x111
287BTN_MIDDLE		0x112
288BTN_SIDE		0x113
289BTN_EXTRA		0x114
290BTN_FORWARD		0x115
291BTN_BACK		0x116
292BTN_TASK		0x117
293
294BTN_TRIGGER		0x120
295BTN_THUMB		0x121
296BTN_THUMB2		0x122
297BTN_TOP			0x123
298BTN_TOP2		0x124
299BTN_PINKIE		0x125
300BTN_BASE		0x126
301BTN_BASE2		0x127
302BTN_BASE3		0x128
303BTN_BASE4		0x129
304BTN_BASE5		0x12a
305BTN_BASE6		0x12b
306BTN_DEAD		0x12f
307
308BTN_SOUTH		0x130
309BTN_EAST		0x131
310BTN_C			0x132
311BTN_NORTH		0x133
312BTN_WEST		0x134
313BTN_Z			0x135
314BTN_TL			0x136
315BTN_TR			0x137
316BTN_TL2			0x138
317BTN_TR2			0x139
318BTN_SELECT		0x13a
319BTN_START		0x13b
320BTN_MODE		0x13c
321BTN_THUMBL		0x13d
322BTN_THUMBR		0x13e
323
324BTN_TOOL_PEN		0x140
325BTN_TOOL_RUBBER		0x141
326BTN_TOOL_BRUSH		0x142
327BTN_TOOL_PENCIL		0x143
328BTN_TOOL_AIRBRUSH	0x144
329BTN_TOOL_FINGER		0x145
330BTN_TOOL_MOUSE		0x146
331BTN_TOOL_LENS		0x147
332BTN_TOOL_QUINTTAP	0x148
333BTN_STYLUS3		0x149
334BTN_TOUCH		0x14a
335BTN_STYLUS		0x14b
336BTN_STYLUS2		0x14c
337BTN_TOOL_DOUBLETAP	0x14d
338BTN_TOOL_TRIPLETAP	0x14e
339BTN_TOOL_QUADTAP	0x14f
340
341BTN_GEAR_DOWN		0x150
342BTN_GEAR_UP		0x151
343
344KEY_OK			0x160
345KEY_SELECT		0x161
346KEY_GOTO		0x162
347KEY_CLEAR		0x163
348KEY_POWER2		0x164
349KEY_OPTION		0x165
350KEY_INFO		0x166
351KEY_TIME		0x167
352KEY_VENDOR		0x168
353KEY_ARCHIVE		0x169
354KEY_PROGRAM		0x16a
355KEY_CHANNEL		0x16b
356KEY_FAVORITES		0x16c
357KEY_EPG			0x16d
358KEY_PVR			0x16e
359KEY_MHP			0x16f
360KEY_LANGUAGE		0x170
361KEY_TITLE		0x171
362KEY_SUBTITLE		0x172
363KEY_ANGLE		0x173
364KEY_ZOOM		0x174
365KEY_MODE		0x175
366KEY_KEYBOARD		0x176
367KEY_SCREEN		0x177
368KEY_PC			0x178
369KEY_TV			0x179
370KEY_TV2			0x17a
371KEY_VCR			0x17b
372KEY_VCR2		0x17c
373KEY_SAT			0x17d
374KEY_SAT2		0x17e
375KEY_CD			0x17f
376KEY_TAPE		0x180
377KEY_RADIO		0x181
378KEY_TUNER		0x182
379KEY_PLAYER		0x183
380KEY_TEXT		0x184
381KEY_DVD			0x185
382KEY_AUX			0x186
383KEY_MP3			0x187
384KEY_AUDIO		0x188
385KEY_VIDEO		0x189
386KEY_DIRECTORY		0x18a
387KEY_LIST		0x18b
388KEY_MEMO		0x18c
389KEY_CALENDAR		0x18d
390KEY_RED			0x18e
391KEY_GREEN		0x18f
392KEY_YELLOW		0x190
393KEY_BLUE		0x191
394KEY_CHANNELUP		0x192
395KEY_CHANNELDOWN		0x193
396KEY_FIRST		0x194
397KEY_LAST		0x195
398KEY_AB			0x196
399KEY_NEXT		0x197
400KEY_RESTART		0x198
401KEY_SLOW		0x199
402KEY_SHUFFLE		0x19a
403KEY_BREAK		0x19b
404KEY_PREVIOUS		0x19c
405KEY_DIGITS		0x19d
406KEY_TEEN		0x19e
407KEY_TWEN		0x19f
408KEY_VIDEOPHONE		0x1a0
409KEY_GAMES		0x1a1
410KEY_ZOOMIN		0x1a2
411KEY_ZOOMOUT		0x1a3
412KEY_ZOOMRESET		0x1a4
413KEY_WORDPROCESSOR	0x1a5
414KEY_EDITOR		0x1a6
415KEY_SPREADSHEET		0x1a7
416KEY_GRAPHICSEDITOR	0x1a8
417KEY_PRESENTATION	0x1a9
418KEY_DATABASE		0x1aa
419KEY_NEWS		0x1ab
420KEY_VOICEMAIL		0x1ac
421KEY_ADDRESSBOOK		0x1ad
422KEY_MESSENGER		0x1ae
423KEY_DISPLAYTOGGLE	0x1af
424KEY_SPELLCHECK		0x1b0
425KEY_LOGOFF		0x1b1
426
427KEY_DOLLAR		0x1b2
428KEY_EURO		0x1b3
429
430KEY_FRAMEBACK		0x1b4
431KEY_FRAMEFORWARD	0x1b5
432KEY_CONTEXT_MENU	0x1b6
433KEY_MEDIA_REPEAT	0x1b7
434KEY_10CHANNELSUP	0x1b8
435KEY_10CHANNELSDOWN	0x1b9
436KEY_IMAGES		0x1ba
437
438KEY_DEL_EOL		0x1c0
439KEY_DEL_EOS		0x1c1
440KEY_INS_LINE		0x1c2
441KEY_DEL_LINE		0x1c3
442
443KEY_FN			0x1d0
444KEY_FN_ESC		0x1d1
445KEY_FN_F1		0x1d2
446KEY_FN_F2		0x1d3
447KEY_FN_F3		0x1d4
448KEY_FN_F4		0x1d5
449KEY_FN_F5		0x1d6
450KEY_FN_F6		0x1d7
451KEY_FN_F7		0x1d8
452KEY_FN_F8		0x1d9
453KEY_FN_F9		0x1da
454KEY_FN_F10		0x1db
455KEY_FN_F11		0x1dc
456KEY_FN_F12		0x1dd
457KEY_FN_1		0x1de
458KEY_FN_2		0x1df
459KEY_FN_D		0x1e0
460KEY_FN_E		0x1e1
461KEY_FN_F		0x1e2
462KEY_FN_S		0x1e3
463KEY_FN_B		0x1e4
464
465KEY_BRL_DOT1		0x1f1
466KEY_BRL_DOT2		0x1f2
467KEY_BRL_DOT3		0x1f3
468KEY_BRL_DOT4		0x1f4
469KEY_BRL_DOT5		0x1f5
470KEY_BRL_DOT6		0x1f6
471KEY_BRL_DOT7		0x1f7
472KEY_BRL_DOT8		0x1f8
473KEY_BRL_DOT9		0x1f9
474KEY_BRL_DOT10		0x1fa
475
476KEY_NUMERIC_0		0x200
477KEY_NUMERIC_1		0x201
478KEY_NUMERIC_2		0x202
479KEY_NUMERIC_3		0x203
480KEY_NUMERIC_4		0x204
481KEY_NUMERIC_5		0x205
482KEY_NUMERIC_6		0x206
483KEY_NUMERIC_7		0x207
484KEY_NUMERIC_8		0x208
485KEY_NUMERIC_9		0x209
486KEY_NUMERIC_STAR	0x20a
487KEY_NUMERIC_POUND	0x20b
488KEY_NUMERIC_A		0x20c
489KEY_NUMERIC_B		0x20d
490KEY_NUMERIC_C		0x20e
491KEY_NUMERIC_D		0x20f
492
493KEY_CAMERA_FOCUS	0x210
494KEY_WPS_BUTTON		0x211
495
496KEY_TOUCHPAD_TOGGLE	0x212
497KEY_TOUCHPAD_ON		0x213
498KEY_TOUCHPAD_OFF	0x214
499
500KEY_CAMERA_ZOOMIN	0x215
501KEY_CAMERA_ZOOMOUT	0x216
502KEY_CAMERA_UP		0x217
503KEY_CAMERA_DOWN		0x218
504KEY_CAMERA_LEFT		0x219
505KEY_CAMERA_RIGHT	0x21a
506
507KEY_ATTENDANT_ON	0x21b
508KEY_ATTENDANT_OFF	0x21c
509KEY_ATTENDANT_TOGGLE	0x21d
510KEY_LIGHTS_TOGGLE	0x21e
511
512BTN_DPAD_UP		0x220
513BTN_DPAD_DOWN		0x221
514BTN_DPAD_LEFT		0x222
515BTN_DPAD_RIGHT		0x223
516
517KEY_ALS_TOGGLE		0x230
518KEY_ROTATE_LOCK_TOGGLE	0x231
519
520KEY_BUTTONCONFIG		0x240
521KEY_TASKMANAGER		0x241
522KEY_JOURNAL		0x242
523KEY_CONTROLPANEL		0x243
524KEY_APPSELECT		0x244
525KEY_SCREENSAVER		0x245
526KEY_VOICECOMMAND		0x246
527KEY_ASSISTANT		0x247
528
529#ifndef STRACE_WORKAROUND_FOR_KEY_BRIGHTNESS_MIN
530# define STRACE_WORKAROUND_FOR_KEY_BRIGHTNESS_MIN
531/*
532 * KEY_BRIGHTNESS_MIN and KEY_BRIGHTNESS_MAX constants were introduced
533 * by Linux kernel commit v3.16-rc1~30^2~6^2~1^2~7.
534 * Apparently, RHEL7 introduced an alternative KEY_BRIGHTNESS_MIN constant
535 * with the same value as upstream KEY_BRIGHTNESS_MAX.
536 * Downstream vendors are *not* allowed to do this.
537 * Ignore the system value of KEY_BRIGHTNESS_MIN.
538 */
539# undef KEY_BRIGHTNESS_MIN
540#endif
541KEY_BRIGHTNESS_MIN		0x250
542
543KEY_BRIGHTNESS_MAX		0x251
544
545KEY_KBDINPUTASSIST_PREV		0x260
546KEY_KBDINPUTASSIST_NEXT		0x261
547KEY_KBDINPUTASSIST_PREVGROUP		0x262
548KEY_KBDINPUTASSIST_NEXTGROUP		0x263
549KEY_KBDINPUTASSIST_ACCEPT		0x264
550KEY_KBDINPUTASSIST_CANCEL		0x265
551
552KEY_RIGHT_UP			0x266
553KEY_RIGHT_DOWN			0x267
554KEY_LEFT_UP			0x268
555KEY_LEFT_DOWN			0x269
556
557KEY_ROOT_MENU			0x26a
558KEY_MEDIA_TOP_MENU		0x26b
559KEY_NUMERIC_11			0x26c
560KEY_NUMERIC_12			0x26d
561
562KEY_AUDIO_DESC			0x26e
563KEY_3D_MODE			0x26f
564KEY_NEXT_FAVORITE		0x270
565KEY_STOP_RECORD			0x271
566KEY_PAUSE_RECORD		0x272
567KEY_VOD				0x273
568KEY_UNMUTE			0x274
569KEY_FASTREVERSE			0x275
570KEY_SLOWREVERSE			0x276
571
572#ifndef STRACE_WORKAROUND_FOR_KEY_DATA
573# define STRACE_WORKAROUND_FOR_KEY_DATA
574/*
575 * Linux kernel commit v4.9-rc8~12^2 has changed the value of KEY_DATA
576 * constant introduced by commit v4.7-rc6~32^2~6^2 because the old value
577 * was already used by KEY_FASTREVERSE.
578 * Looks like the best way to handle this situation is to pretend that
579 * the old value of KEY_DATA didn't exist.
580 */
581# undef KEY_DATA
582#endif
583KEY_DATA			0x277
584
585KEY_ONSCREEN_KEYBOARD		0x278
586
587BTN_TRIGGER_HAPPY1		0x2c0
588BTN_TRIGGER_HAPPY2		0x2c1
589BTN_TRIGGER_HAPPY3		0x2c2
590BTN_TRIGGER_HAPPY4		0x2c3
591BTN_TRIGGER_HAPPY5		0x2c4
592BTN_TRIGGER_HAPPY6		0x2c5
593BTN_TRIGGER_HAPPY7		0x2c6
594BTN_TRIGGER_HAPPY8		0x2c7
595BTN_TRIGGER_HAPPY9		0x2c8
596BTN_TRIGGER_HAPPY10		0x2c9
597BTN_TRIGGER_HAPPY11		0x2ca
598BTN_TRIGGER_HAPPY12		0x2cb
599BTN_TRIGGER_HAPPY13		0x2cc
600BTN_TRIGGER_HAPPY14		0x2cd
601BTN_TRIGGER_HAPPY15		0x2ce
602BTN_TRIGGER_HAPPY16		0x2cf
603BTN_TRIGGER_HAPPY17		0x2d0
604BTN_TRIGGER_HAPPY18		0x2d1
605BTN_TRIGGER_HAPPY19		0x2d2
606BTN_TRIGGER_HAPPY20		0x2d3
607BTN_TRIGGER_HAPPY21		0x2d4
608BTN_TRIGGER_HAPPY22		0x2d5
609BTN_TRIGGER_HAPPY23		0x2d6
610BTN_TRIGGER_HAPPY24		0x2d7
611BTN_TRIGGER_HAPPY25		0x2d8
612BTN_TRIGGER_HAPPY26		0x2d9
613BTN_TRIGGER_HAPPY27		0x2da
614BTN_TRIGGER_HAPPY28		0x2db
615BTN_TRIGGER_HAPPY29		0x2dc
616BTN_TRIGGER_HAPPY30		0x2dd
617BTN_TRIGGER_HAPPY31		0x2de
618BTN_TRIGGER_HAPPY32		0x2df
619BTN_TRIGGER_HAPPY33		0x2e0
620BTN_TRIGGER_HAPPY34		0x2e1
621BTN_TRIGGER_HAPPY35		0x2e2
622BTN_TRIGGER_HAPPY36		0x2e3
623BTN_TRIGGER_HAPPY37		0x2e4
624BTN_TRIGGER_HAPPY38		0x2e5
625BTN_TRIGGER_HAPPY39		0x2e6
626BTN_TRIGGER_HAPPY40		0x2e7
627