blob: c53625193ab09f0f17ab846bd4e14bc2003cd214 (
plain)
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
|
// Key codes as defined by the USB HID Usage Tables 1.4 specification,
// located at <https://usb.org/sites/default/files/hut1_4.pdf>.
def KEY_A = 0x04: Key;
def KEY_B = 0x05: Key;
def KEY_C = 0x06: Key;
def KEY_D = 0x07: Key;
def KEY_E = 0x08: Key;
def KEY_F = 0x09: Key;
def KEY_G = 0x0a: Key;
def KEY_H = 0x0b: Key;
def KEY_I = 0x0c: Key;
def KEY_J = 0x0d: Key;
def KEY_K = 0x0e: Key;
def KEY_L = 0x0f: Key;
def KEY_M = 0x10: Key;
def KEY_N = 0x11: Key;
def KEY_O = 0x12: Key;
def KEY_P = 0x13: Key;
def KEY_Q = 0x14: Key;
def KEY_R = 0x15: Key;
def KEY_S = 0x16: Key;
def KEY_T = 0x17: Key;
def KEY_U = 0x18: Key;
def KEY_V = 0x19: Key;
def KEY_W = 0x1a: Key;
def KEY_X = 0x1b: Key;
def KEY_Y = 0x1c: Key;
def KEY_Z = 0x1d: Key;
def KEY_1 = 0x1e: Key;
def KEY_2 = 0x1f: Key;
def KEY_3 = 0x20: Key;
def KEY_4 = 0x21: Key;
def KEY_5 = 0x22: Key;
def KEY_6 = 0x23: Key;
def KEY_7 = 0x24: Key;
def KEY_8 = 0x25: Key;
def KEY_9 = 0x26: Key;
def KEY_0 = 0x27: Key;
def KEY_RETURN_ENTER = 0x28: Key;
def KEY_ESCAPE = 0x29: Key;
def KEY_BACKSPACE = 0x2a: Key;
def KEY_TAB = 0x2b: Key;
def KEY_SPACE = 0x2c: Key;
def KEY_HYPHEN = 0x2d: Key;
def KEY_EQUALS = 0x2e: Key;
def KEY_LBRACKET = 0x2f: Key;
def KEY_RBRACKET = 0x30: Key;
def KEY_BACKSLASH = 0x31: Key;
def KEY_NON_US_HASH = 0x32: Key;
def KEY_SEMICOLON = 0x33: Key;
def KEY_APOSTROPHE = 0x34: Key;
def KEY_GRAVE = 0x35: Key;
def KEY_COMMA = 0x36: Key;
def KEY_PERIOD = 0x37: Key;
def KEY_SLASH = 0x38: Key;
def KEY_CAPS_LOCK = 0x39: Key;
def KEY_F1 = 0x3a: Key;
def KEY_F2 = 0x3b: Key;
def KEY_F3 = 0x3c: Key;
def KEY_F4 = 0x3d: Key;
def KEY_F5 = 0x3e: Key;
def KEY_F6 = 0x3f: Key;
def KEY_F7 = 0x40: Key;
def KEY_F8 = 0x41: Key;
def KEY_F9 = 0x42: Key;
def KEY_F10 = 0x43: Key;
def KEY_F11 = 0x44: Key;
def KEY_F12 = 0x45: Key;
def KEY_PRINT_SCREEN = 0x46: Key;
def KEY_SCROLL_LOCK = 0x47: Key;
def KEY_PAUSE = 0x48: Key;
def KEY_INSERT = 0x49: Key;
def KEY_HOME = 0x4a: Key;
def KEY_PAGE_UP = 0x4b: Key;
def KEY_DELETE = 0x4c: Key;
def KEY_END = 0x4d: Key;
def KEY_PAGE_DOWN = 0x4e: Key;
def KEY_RIGHT = 0x4f: Key;
def KEY_LEFT = 0x50: Key;
def KEY_DOWN = 0x51: Key;
def KEY_UP = 0x52: Key;
def KEY_NUM_LOCK = 0x53: Key;
def KEY_PAD_DIVIDE = 0x54: Key;
def KEY_PAD_MULTIPLY = 0x55: Key;
def KEY_PAD_MINUS = 0x56: Key;
def KEY_PAD_PLUS = 0x57: Key;
def KEY_PAD_ENTER = 0x58: Key;
def KEY_PAD_1 = 0x59: Key;
def KEY_PAD_2 = 0x5a: Key;
def KEY_PAD_3 = 0x5b: Key;
def KEY_PAD_4 = 0x5c: Key;
def KEY_PAD_5 = 0x5d: Key;
def KEY_PAD_6 = 0x5e: Key;
def KEY_PAD_7 = 0x5f: Key;
def KEY_PAD_8 = 0x60: Key;
def KEY_PAD_9 = 0x61: Key;
def KEY_PAD_0 = 0x62: Key;
def KEY_PAD_PERIOD = 0x63: Key;
def KEY_NON_US_BACKSLASH = 0x64: Key;
def KEY_APPLICATION = 0x65: Key;
def KEY_PAD_EQUALS = 0x67: Key;
def KEY_F13 = 0x68: Key;
def KEY_F14 = 0x69: Key;
def KEY_F15 = 0x6a: Key;
def KEY_F16 = 0x6b: Key;
def KEY_F17 = 0x6c: Key;
def KEY_F18 = 0x6d: Key;
def KEY_F19 = 0x6e: Key;
def KEY_F20 = 0x6f: Key;
def KEY_F21 = 0x70: Key;
def KEY_F22 = 0x71: Key;
def KEY_F23 = 0x72: Key;
def KEY_F24 = 0x73: Key;
def KEY_EXECUTE = 0x74: Key;
def KEY_HELP = 0x75: Key;
def KEY_MENU = 0x76: Key;
def KEY_SELECT = 0x77: Key;
def KEY_STOP = 0x78: Key;
def KEY_AGAIN = 0x79: Key;
def KEY_UNDO = 0x7a: Key;
def KEY_CUT = 0x7b: Key;
def KEY_COPY = 0x7c: Key;
def KEY_PASTE = 0x7d: Key;
def KEY_FIND = 0x7e: Key;
def KEY_MUTE = 0x7f: Key;
def KEY_VOLUME_UP = 0x80: Key;
def KEY_VOLUME_DOWN = 0x81: Key;
def KEY_PAD_COMMA = 0x85: Key;
def KEY_PAD_EQUAL_SIGN = 0x86: Key;
def KEY_INTERNATIONAL1 = 0x87: Key;
def KEY_INTERNATIONAL2 = 0x88: Key;
def KEY_INTERNATIONAL3 = 0x89: Key;
def KEY_INTERNATIONAL4 = 0x8a: Key;
def KEY_INTERNATIONAL5 = 0x8b: Key;
def KEY_INTERNATIONAL6 = 0x8c: Key;
def KEY_INTERNATIONAL7 = 0x8d: Key;
def KEY_INTERNATIONAL8 = 0x8e: Key;
def KEY_INTERNATIONAL9 = 0x8f: Key;
def KEY_LANG1 = 0x90: Key;
def KEY_LANG2 = 0x91: Key;
def KEY_LANG3 = 0x92: Key;
def KEY_LANG4 = 0x93: Key;
def KEY_LANG5 = 0x94: Key;
def KEY_LANG6 = 0x95: Key;
def KEY_LANG7 = 0x96: Key;
def KEY_LANG8 = 0x97: Key;
def KEY_LANG9 = 0x98: Key;
def KEY_ALT_ERASE = 0x99: Key;
def KEY_SYSREQ = 0x9a: Key;
def KEY_CANCEL = 0x9b: Key;
def KEY_CLEAR = 0x9c: Key;
def KEY_PRIOR = 0x9d: Key;
def KEY_RETURN = 0x9e: Key;
def KEY_SEPARATOR = 0x9f: Key;
def KEY_OUT = 0xa0: Key;
def KEY_OPER = 0xa1: Key;
def KEY_CLEAR_AGAIN = 0xa2: Key;
def KEY_CRSEL = 0xa3: Key;
def KEY_EXSEL = 0xa4: Key;
def KEY_PAD_00 = 0xb0: Key;
def KEY_PAD_000 = 0xb1: Key;
def KEY_THOUSANDS_SEPARATOR = 0xb2: Key;
def KEY_DECIMAL_SEPARATOR = 0xb3: Key;
def KEY_CURRENCY_UNIT = 0xb4: Key;
def KEY_CURRENCY_SUB_UNIT = 0xb5: Key;
def KEY_PAD_LPAREN = 0xb6: Key;
def KEY_PAD_RPAREN = 0xb7: Key;
def KEY_PAD_LBRACE = 0xb8: Key;
def KEY_PAD_RBRACE = 0xb9: Key;
def KEY_PAD_TAB = 0xba: Key;
def KEY_PAD_BACKSPACE = 0xbb: Key;
def KEY_PAD_A = 0xbc: Key;
def KEY_PAD_B = 0xbd: Key;
def KEY_PAD_C = 0xbe: Key;
def KEY_PAD_D = 0xbf: Key;
def KEY_PAD_E = 0xc0: Key;
def KEY_PAD_F = 0xc1: Key;
def KEY_PAD_XOR = 0xc2: Key;
def KEY_PAD_POWER = 0xc3: Key;
def KEY_PAD_PERCENT = 0xc4: Key;
def KEY_PAD_LESS = 0xc5: Key;
def KEY_PAD_GREATER = 0xc6: Key;
def KEY_PAD_AND = 0xc7: Key;
def KEY_PAD_ANDAND = 0xc8: Key;
def KEY_PAD_OR = 0xc9: Key;
def KEY_PAD_OROR = 0xca: Key;
def KEY_PAD_COLON = 0xcb: Key;
def KEY_PAD_HASH = 0xcc: Key;
def KEY_PAD_SPACE = 0xcd: Key;
def KEY_PAD_AT = 0xce: Key;
def KEY_PAD_EXCLAMATION = 0xcf: Key;
def KEY_PAD_MEMORY_STORE = 0xd0: Key;
def KEY_PAD_MEMORY_RECALL = 0xd1: Key;
def KEY_PAD_MEMORY_CLEAR = 0xd2: Key;
def KEY_PAD_MEMORY_ADD = 0xd3: Key;
def KEY_PAD_MEMORY_SUBTRACT = 0xd4: Key;
def KEY_PAD_MEMORY_MULTIPLY = 0xd5: Key;
def KEY_PAD_MEMORY_DIVIDE = 0xd6: Key;
def KEY_PAD_PLUS_MINUS = 0xd7: Key;
def KEY_PAD_CLEAR = 0xd8: Key;
def KEY_PAD_CLEAR_ENTRY = 0xd9: Key;
def KEY_PAD_BINARY = 0xda: Key;
def KEY_PAD_OCTAL = 0xdb: Key;
def KEY_PAD_DECIMAL = 0xdc: Key;
def KEY_PAD_HEXADECIMAL = 0xdd: Key;
def KEY_LCTRL = 0xe0: Key;
def KEY_LSHIFT = 0xe1: Key;
def KEY_LALT = 0xe2: Key;
def KEY_LGUI = 0xe3: Key;
def KEY_RCTRL = 0xe4: Key;
def KEY_RSHIFT = 0xe5: Key;
def KEY_RALT = 0xe6: Key;
def KEY_RGUI = 0xe7: Key;
|