-
Notifications
You must be signed in to change notification settings - Fork 5
/
USBCodeTable.tex
283 lines (276 loc) · 7.81 KB
/
USBCodeTable.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
% USB HID Keyboard Code Table - Jacob Alexander 2014
% Status Keys 0x00 - 0x03
0x04 (4) & A & \\
0x05 (5) & B & \\
0x06 (6) & C & \\
0x07 (7) & D & \\
0x08 (8) & E & \\
0x09 (9) & F & \\
0x0A (10) & G & \\
0x0B (11) & H & \\
0x0C (12) & I & \\
0x0D (13) & J & \\
0x0E (14) & K & \\
0x0F (15) & L & \\
0x10 (16) & M & \\
0x11 (17) & N & \\
0x12 (18) & O & \\
0x13 (19) & P & \\
0x14 (20) & Q & \\
0x15 (21) & R & \\
0x16 (22) & S & \\
0x17 (23) & T & \\
0x18 (24) & U & \\
0x19 (25) & V & \\
0x1A (26) & W & \\
0x1B (27) & X & \\
0x1C (28) & Y & \\
0x1D (29) & Z & \\
0x1E (30) & 1 & \\
0x1F (31) & 2 & \\
0x20 (32) & 3 & \\
0x21 (33) & 4 & \\
0x22 (34) & 5 & \\
0x23 (35) & 6 & \\
0x24 (36) & 7 & \\
0x25 (37) & 8 & \\
0x26 (38) & 9 & \\
0x27 (39) & 0 & \\
0x28 (40) & Enter & \\
0x29 (41) & Esc & \\
0x2A (42) & Backspace & \\
0x2B (43) & Tab & \\
0x2C (44) & Space & \\
0x2D (45) & - & Minus \\
0x2E (46) & = & Equals, Equal \\
0x2F (47) & [ & Left Bracket, LBracket \\
0x30 (48) & ] & Right Bracket, RBracket \\
0x31 (49) & \textbackslash & Backslash \\
0x32 (50) & \# & Number, Hash \\
0x33 (51) & ; & Semicolon \\
0x34 (52) & ' & Quote \\
0x35 (53) & ` & Backtick \\
0x36 (54) & , & Comma \\
0x37 (55) & . & Period \\
0x38 (56) & / & Slash \\
0x39 (57) & CapsLock & \\
0x3A (58) & F1 & \\
0x3B (59) & F2 & \\
0x3C (60) & F3 & \\
0x3D (61) & F4 & \\
0x3E (62) & F5 & \\
0x3F (63) & F6 & \\
0x40 (64) & F7 & \\
0x41 (65) & F8 & \\
0x42 (66) & F9 & \\
0x43 (67) & F10 & \\
0x44 (68) & F11 & \\
0x45 (69) & F12 & \\
0x46 (70) & PrintScreen & \\
0x47 (71) & ScrollLock & \\
0x48 (72) & Pause & \\
0x49 (73) & Insert & \\
0x4A (74) & Home & \\
0x4B (75) & PageUp & \\
0x4C (76) & Delete & \\
0x4D (77) & End & \\
0x4E (78) & PageDown & \\
0x4F (79) & Right & \\
0x50 (80) & Left & \\
0x51 (81) & Down & \\
0x52 (82) & Up & \\
0x53 (83) & NumLock & \\
0x54 (84) & P/ & Keypad Slash \\
0x55 (85) & P* & Keypad Asterisk \\
0x56 (86) & P- & Keypad Minus \\
0x57 (87) & P+ & Keypad Plus \\
0x58 (88) & PEnter & Keypad Enter \\
0x59 (89) & P1 & Keypad 1 \\
0x5A (90) & P2 & Keypad 2 \\
0x5B (91) & P3 & Keypad 3 \\
0x5C (92) & P4 & Keypad 4 \\
0x5D (93) & P5 & Keypad 5 \\
0x5E (94) & P6 & Keypad 6 \\
0x5F (95) & P7 & Keypad 7 \\
0x60 (96) & P8 & Keypad 8 \\
0x61 (97) & P9 & Keypad 9 \\
0x62 (98) & P0 & Keypad 0 \\
0x63 (99) & P. & Keypad Decimal \\
0x64 (100) & ISO/ & ISO Slash \\
0x65 (101) & App & \\
\hline
% Status Key 0x66
0x67 (103) & P= & Keypad Equals \\
0x68 (104) & F13 & \\
0x69 (105) & F14 & \\
0x6A (106) & F15 & \\
0x6B (107) & F16 & \\
0x6C (108) & F17 & \\
0x6D (109) & F18 & \\
0x6E (110) & F19 & \\
0x6F (111) & F20 & \\
0x70 (112) & F21 & \\
0x71 (113) & F22 & \\
0x72 (114) & F23 & \\
0x73 (115) & F24 & \\
0x74 (116) & Exec & \\
0x75 (117) & Help & \\
0x76 (118) & Menu & \\
0x77 (119) & Select & \\
0x78 (120) & Stop & \\
0x79 (121) & Again & \\
0x7A (122) & Undo & \\
0x7B (123) & Cut & \\
0x7C (124) & Copy & \\
0x7D (125) & Paste & \\
0x7E (126) & Find & \\
0x7F (127) & Mute & \\
0x80 (128) & VolumeUp & \\
0x81 (129) & VolumeDown & \\
0x82 (130) & CapsToggleLock & \\
0x83 (131) & NumToggleLock & \\
0x84 (132) & ScrollToggleLock & \\
0x85 (133) & P, & Keypad Comma \\
0x86 (134) & Keypad AS400 Equals & \\
0x87 (135) & Inter1 & Kanji1 \\
0x88 (136) & Inter2 & Kanji2, Kana \\
0x89 (137) & Inter3 & Kanji3, Yen \\
0x8A (138) & Inter4 & Kanji4, Henkan \\
0x8B (139) & Inter5 & Kanji5, Muhenkan \\
0x8C (140) & Inter6 & Kanji6 \\
0x8D (141) & Inter7 & Kanji7, ByteToggle \\
0x8E (142) & Inter8 & Kanji8 \\
0x8F (143) & Inter9 & Kanji9 \\
0x90 (144) & Lang1 & HangulEnglish \\
0x91 (145) & Lang2 & Hanja, Eisu \\
0x92 (146) & Lang3 & Katakana \\
0x93 (147) & Lang4 & Hiragana \\
0x94 (148) & Lang5 & ZenkakuHankaku \\
0x95 (149) & Lang6 & \\
0x96 (150) & Lang7 & \\
0x97 (151) & Lang8 & \\
0x98 (152) & Lang9 & \\
0x99 (153) & AltErase & \\
0x9A (154) & SysReq & \\
0x9B (155) & Cancel & \\
0x9C (156) & Clear & \\
0x9D (157) & Prior & \\
0x9E (158) & Return & \\
0x9F (159) & Sep & Separator \\
0xA0 (160) & Out & \\
0xA1 (161) & Oper & \\
0xA2 (162) & Clear & \\
0xA3 (163) & CrSel & \\
0xA4 (164) & ExSel & \\
\hline
% Reserved 0xA5 - 0xAF
0xB0 (176) & P00 & Keypad 00 \\
0xB1 (177) & P000 & Keypad 000 \\
0xB2 (178) & 1000Sep & ThousandSeparator \\
0xB3 (179) & DecimalSep & DecimalSeparator \\
0xB4 (180) & Currency & CurrencyUnit \\
0xB5 (181) & CurrencySub & CurrencySubUnit \\
0xB6 (182) & P( & Keypad Left Parentheses \\
0xB7 (183) & P) & Keypad Right Parentheses \\
0xB8 (184) & P\{ & Keypad Left Brace \\
0xB9 (185) & P\} & Keypad Right Brace \\
0xBA (186) & PTab & Keypad Tab \\
0xBB (187) & PBackspace & Keypad Backspace \\
0xBC (188) & PA & Keypad A \\
0xBD (189) & PB & Keypad B \\
0xBE (190) & PC & Keypad C \\
0xBF (191) & PD & Keypad D \\
0xC0 (192) & PE & Keypad E \\
0xC1 (193) & PF & Keypad F \\
0xC2 (194) & PXOR & Keypad XOR \\
0xC3 (195) & P\^ & Keypad Chevron \\
0xC4 (196) & P\% & Keypad Percent \\
0xC5 (197) & P\textless & Keypad LessThan \\
0xC6 (198) & P\textgreater & Keypad GreaterThan \\
0xC7 (199) & P\& & Keypad BitAnd \\
0xC8 (200) & P\&\& & Keypad And \\
0xC9 (201) & P\verb+|+ & Keypad BitOr \\
0xCA (202) & P\verb+||+ & Keypad Or \\
0xCB (203) & P: & Keypad Colon \\
0xCC (204) & P\# & Keypad Number, Keypad Hash \\
0xCD (205) & PSpace & Keypad Space \\
0xCE (206) & P@ & Keypad At \\
0xCF (207) & P! & Keypad Exclaim \\
0xD0 (208) & PMemStore & Keypad MemStore \\
0xD1 (209) & PMemRecall & Keypad MemRecall \\
0xD2 (210) & PMemClear & Keypad MemClear \\
0xD3 (211) & PMemAdd & Keypad MemAdd \\
0xD4 (212) & PMemSub & Keypad MemSub \\
0xD5 (213) & PMemMult & Keypad MemMult \\
0xD6 (214) & PMemDiv & Keypad MemDiv \\
0xD7 (215) & P+/- & Keypad PlusMinus \\
0xD8 (216) & PClear & Keypad Clear \\
0xD9 (217) & PClearEntry & Keypad ClearEntry \\
0xDA (218) & PBinary & Keypad Binary \\
0xDB (219) & POctal & Keypad Octal \\
0xDC (220) & PDecimal & Keypad Decimal \\
0xDD (221) & PHex & Keypad Hex \\
\hline
% Reserved 0xDE - 0xDF
0xE0 (224) & LCtrl & Left Ctrl, Ctrl \\
0xE1 (225) & LShift & Left Shift, Shift \\
0xE2 (226) & LAlt & Left Alt, Alt \\
0xE3 (227) & LGui & Left Gui, Gui \\
0xE4 (228) & RCtrl & Right Ctrl \\
0xE5 (229) & RShift & Right Shift \\
0xE6 (230) & RAlt & Right Alt \\
0xE7 (231) & RGui & Right Gui \\
% Internal Use 0xF0 to 0x121
\hline
\hline
0xF0 (240) & Function1 & Fun1, Fun \\
0xF1 (241) & Function2 & Fun2 \\
0xF2 (242) & Function3 & Fun3 \\
0xF3 (243) & Function4 & Fun4 \\
0xF4 (244) & Function5 & Fun5 \\
0xF5 (245) & Function6 & Fun6 \\
0xF6 (246) & Function7 & Fun7 \\
0xF7 (247) & Function8 & Fun8 \\
0xF8 (248) & Function9 & Fun9 \\
0xF9 (249) & Function10 & Fun10 \\
0xFA (250) & Function11 & Fun11 \\
0xFB (251) & Function12 & Fun12 \\
0xFC (252) & Function13 & Fun13 \\
0xFD (253) & Function14 & Fun14 \\
0xFE (254) & Function15 & Fun15 \\
0xFF (255) & Function16 & Fun16 \\
0x100 (256) & Lock1 & Lck1, Lck \\
0x101 (257) & Lock2 & Lck2 \\
0x102 (258) & Lock3 & Lck3 \\
0x103 (259) & Lock4 & Lck4 \\
0x104 (260) & Lock5 & Lck5 \\
0x105 (261) & Lock6 & Lck6 \\
0x106 (262) & Lock7 & Lck7 \\
0x107 (263) & Lock8 & Lck8 \\
0x108 (264) & Lock9 & Lck9 \\
0x109 (265) & Lock10 & Lck10 \\
0x10A (266) & Lock11 & Lck11 \\
0x10B (267) & Lock12 & Lck12 \\
0x10C (268) & Lock13 & Lck13 \\
0x10D (269) & Lock14 & Lck14 \\
0x10E (270) & Lock15 & Lck15 \\
0x10F (271) & Lock16 & Lck16 \\
0x110 (272) & Latch1 & Lat1, Lat \\
0x111 (273) & Latch2 & Lat2 \\
0x112 (274) & Latch3 & Lat3 \\
0x113 (275) & Latch4 & Lat4 \\
0x114 (276) & Latch5 & Lat5 \\
0x115 (277) & Latch6 & Lat6 \\
0x116 (278) & Latch7 & Lat7 \\
0x117 (279) & Latch8 & Lat8 \\
0x118 (280) & Latch9 & Lat9 \\
0x119 (281) & Latch10 & Lat10 \\
0x11A (282) & Latch11 & Lat11 \\
0x11B (283) & Latch12 & Lat12 \\
0x11C (284) & Latch13 & Lat13 \\
0x11D (285) & Latch14 & Lat14 \\
0x11E (286) & Latch15 & Lat15 \\
0x11F (287) & Latch16 & Lat16 \\
0x120 (288) & Next Layer & NLayer \\
0x121 (289) & Prev Layer & PLayer \\
% Reserved 0xE8 - 0xFFFF