Skip to content

Latest commit

 

History

History
258 lines (256 loc) · 29.9 KB

hid_keycodes.md

File metadata and controls

258 lines (256 loc) · 29.9 KB

Regular keycodes (Keyboard Keypad Page (0x07))

Key name Usage code Comment
KEY_A 4
KEY_B 5
KEY_C 6
KEY_D 7
KEY_E 8
KEY_F 9
KEY_G 10
KEY_H 11
KEY_I 12
KEY_J 13
KEY_K 14
KEY_L 15
KEY_M 16
KEY_N 17
KEY_O 18
KEY_P 19
KEY_Q 20
KEY_R 21
KEY_S 22
KEY_T 23
KEY_U 24
KEY_V 25
KEY_W 26
KEY_X 27
KEY_Y 28
KEY_Z 29
KEY_1 30
KEY_2 31
KEY_3 32
KEY_4 33
KEY_5 34
KEY_6 35
KEY_7 36
KEY_8 37
KEY_9 38
KEY_0 39
KEY_RETURN 40
KEY_ESC 41
KEY_BACKSPACE 42
KEY_TAB 43
KEY_SPACE 44
KEY_MINUS 45
KEY_EQUAL 46
KEY_LEFT_BRACE 47
KEY_RIGHT_BRACE 48
KEY_BACKSLASH 49
KEY_HASH_TILDE 50
KEY_SEMICOLON 51
KEY_APOSTROPHE 52
KEY_GRAVE 53
KEY_COMMA 54
KEY_DOT 55
KEY_SLASH 56
KEY_CAPSLOCK 57
KEY_F1 58
KEY_F2 59
KEY_F3 60
KEY_F4 61
KEY_F5 62
KEY_F6 63
KEY_F7 64
KEY_F8 65
KEY_F9 66
KEY_F10 67
KEY_F11 68
KEY_F12 69
KEY_SYSRQ 70
KEY_SCROLL_LOCK 71
KEY_PAUSE 72
KEY_INSERT 73
KEY_HOME 74
KEY_PAGE_UP 75
KEY_DELETE 76
KEY_END 77
KEY_PAGE_DOWN 78
KEY_RIGHT_ARROW 79
KEY_LEFT_ARROW 80
KEY_DOWN_ARROW 81
KEY_UP_ARROW 82
KEYPAD_NUMLOCK 83
KEYPAD_SLASH 84
KEYPAD_ASTERISK 85
KEYPAD_MINUS 86
KEYPAD_PLUS 87
KEYPAD_ENTER 88
KEYPAD_1 89
KEYPAD_2 90
KEYPAD_3 91
KEYPAD_4 92
KEYPAD_5 93
KEYPAD_6 94
KEYPAD_7 95
KEYPAD_8 96
KEYPAD_9 97
KEYPAD_0 98
KEYPAD_DOT 99
KEY_102ND 100
KEY_APPLICATION 101
KEY_POWER 102
KEYPAD_EQUAL 103
KEY_F13 104
KEY_F14 105
KEY_F15 106
KEY_F16 107
KEY_F17 108
KEY_F18 109
KEY_F19 110
KEY_F20 111
KEY_F21 112
KEY_F22 113
KEY_F23 114
KEY_F24 115
KEY_EXECUTE 116
KEY_HELP 117
KEY_MENU 118
KEY_SELECT 119
KEY_STOP 120
KEY_AGAIN 121
KEY_UNDO 122
KEY_CUT 123
KEY_COPY 124
KEY_PASTE 125
KEY_FIND 126
KEY_MUTE 127
KEY_VOLUME_UP 128
KEY_VOLUME_DOWN 129
- 130
- 131
- 132
KEYPAD_COMMA 133
- 134
KEY_RO 135
KEY_KATAKANA_HIRAGANA 136
KEY_YEN 137
KEY_HENKAN 138
KEY_MUHENKAN 139
KEYPAD_JPCOMMA 140
KEY_INTERNATIONAL7 141
KEY_INTERNATIONAL8 142
KEY_INTERNATIONAL9 143
KEY_HANGEUL 144
KEY_HANJA 145
KEY_KATAKANA 146
KEY_HIRAGANA 147
KEY_ZENKAKU_HANKAKU 148
KEY_FURIGANA 149
KEY_LANG7 150
KEY_LANG8 151
KEY_LANG9 152
KEY_ALTERNATE_ERASE 153
KEY_SYS_REQ_ATTENTION 154
KEY_CANCEL 155
KEY_CLEAR 156
KEY_PRIOR 157
- 158
KEY_SEPARATOR 159
KEY_OUT 160
KEY_OPER 161
KEY_CLEAR_AGAIN 162
KEY_CR_SEL_PROPS 163
KEY_EX_SEL 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
KEYPAD_00 176
KEYPAD_000 177
KEY_THOUSANDS_SEPARATOR 178
KEY_DECIMAL_SEPARATOR 179
KEY_CURRENCY_UNIT 180
KEY_CURRENCY_SUB_UNIT 181
KEYPAD_LEFT_PARENTHESIS 182
KEYPAD_RIGHT_PARENTHESIS 183
KEYPAD_LEFT_BRACE 184
KEYPAD_RIGHT_BRACE 185
KEYPAD_TAB 186
KEYPAD_BACKSPACE 187
KEYPAD_A 188
KEYPAD_B 189
KEYPAD_C 190
KEYPAD_D 191
KEYPAD_E 192
KEYPAD_F 193
KEYPAD_XOR 194
KEYPAD_CARET 195
KEYPAD_PERCENT 196
KEYPAD_LESS_THAN 197
KEYPAD_GREATER_THAN 198
KEYPAD_AMPERSAND 199
KEYPAD_AMPERSAND_AMPERSAND 200
KEYPAD_PIPE 201
KEYPAD_PIPE_PIPE 202
KEYPAD_COLON 203
KEYPAD_HASH 204
KEYPAD_SPACE 205
KEYPAD_AT 206
KEYPAD_EXCLAMATION 207
KEYPAD_MEMORY_STORE 208
KEYPAD_MEMORY_RECALL 209
KEYPAD_MEMORY_CLEAR 210
KEYPAD_MEMORY_ADD 211
KEYPAD_MEMORY_SUBTRACT 212
KEYPAD_MEMORY_MULTIPLY 213
KEYPAD_MEMORY_DIVIDE 214
KEYPAD_PLUS_MINUS 215
KEYPAD_CLEAR 216
KEYPAD_CLEAR_ENTRY 217
KEYPAD_BINARY 218
KEYPAD_OCTAL 229
KEYPAD_DECIMAL 220
KEYPAD_HEXADECIMAL 221
- 222
- 223
KEY_LEFT_CONTROL 224
KEY_LEFT_SHIFT 225
KEY_LEFT_ALT 226
KEY_LEFT_GUI 227
KEY_RIGHT_CONTROL 228
KEY_RIGHT_SHIFT 229
KEY_RIGHT_ALT 230
KEY_RIGHT_GUI 231
KEY_MEDIA_PLAY_PAUSE 232 Not specified in official HID Usage Table specification.
KEY_MEDIA_STOP_CD 233 Applies to all "KEY_MEDIA_" keys.
KEY_MEDIA_PREVIOUS_SONG 234 --> found in Android sources
KEY_MEDIA_NEXT_SONG 235
KEY_MEDIA_EJECT_CD 236
KEY_MEDIA_VOLUME_UP 237
KEY_MEDIA_VOLUME_DOWN 238
KEY_MEDIA_MUTE 239
KEY_MEDIA_WWW 240
KEY_MEDIA_BACK 241
KEY_MEDIA_FORWARD 242
KEY_MEDIA_STOP 243
KEY_MEDIA_FIND 244
KEY_MEDIA_SCROLL_UP 245
KEY_MEDIA_SCROLL_DOWN 246
KEY_MEDIA_EDIT 247
KEY_MEDIA_SLEEP 248
KEY_MEDIA_COFFEE 249
KEY_MEDIA_REFRESH 250
KEY_MEDIA_CALC 251
- 252
- 253
- 254
- 255