root/branches/dev/wminput/action_enum.txt

Revision 3, 10.3 kB (checked in by dsmith, 2 years ago)

Initial import

Line 
1 /*
2  * Copyright (c) 1999-2002 Vojtech Pavlik
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 as published by
6  * the Free Software Foundation.
7  */
8
9 #define KEY_ESC         1
10 #define KEY_1                   2
11 #define KEY_2                   3
12 #define KEY_3                   4
13 #define KEY_4                   5
14 #define KEY_5                   6
15 #define KEY_6                   7
16 #define KEY_7                   8
17 #define KEY_8                   9
18 #define KEY_9                   10
19 #define KEY_0                   11
20 #define KEY_MINUS               12
21 #define KEY_EQUAL               13
22 #define KEY_BACKSPACE           14
23 #define KEY_TAB                 15
24 #define KEY_Q                   16
25 #define KEY_W                   17
26 #define KEY_E                   18
27 #define KEY_R                   19
28 #define KEY_T                   20
29 #define KEY_Y                   21
30 #define KEY_U                   22
31 #define KEY_I                   23
32 #define KEY_O                   24
33 #define KEY_P                   25
34 #define KEY_LEFTBRACE           26
35 #define KEY_RIGHTBRACE          27
36 #define KEY_ENTER               28
37 #define KEY_LEFTCTRL            29
38 #define KEY_A                   30
39 #define KEY_S                   31
40 #define KEY_D                   32
41 #define KEY_F                   33
42 #define KEY_G                   34
43 #define KEY_H                   35
44 #define KEY_J                   36
45 #define KEY_K                   37
46 #define KEY_L                   38
47 #define KEY_SEMICOLON           39
48 #define KEY_APOSTROPHE          40
49 #define KEY_GRAVE               41
50 #define KEY_LEFTSHIFT           42
51 #define KEY_BACKSLASH           43
52 #define KEY_Z                   44
53 #define KEY_X                   45
54 #define KEY_C                   46
55 #define KEY_V                   47
56 #define KEY_B                   48
57 #define KEY_N                   49
58 #define KEY_M                   50
59 #define KEY_COMMA               51
60 #define KEY_DOT                 52
61 #define KEY_SLASH               53
62 #define KEY_RIGHTSHIFT          54
63 #define KEY_KPASTERISK          55
64 #define KEY_LEFTALT             56
65 #define KEY_SPACE               57
66 #define KEY_CAPSLOCK            58
67 #define KEY_F1                  59
68 #define KEY_F2                  60
69 #define KEY_F3                  61
70 #define KEY_F4                  62
71 #define KEY_F5                  63
72 #define KEY_F6                  64
73 #define KEY_F7                  65
74 #define KEY_F8                  66
75 #define KEY_F9                  67
76 #define KEY_F10                 68
77 #define KEY_NUMLOCK             69
78 #define KEY_SCROLLLOCK          70
79 #define KEY_KP7                 71
80 #define KEY_KP8                 72
81 #define KEY_KP9                 73
82 #define KEY_KPMINUS             74
83 #define KEY_KP4                 75
84 #define KEY_KP5                 76
85 #define KEY_KP6                 77
86 #define KEY_KPPLUS              78
87 #define KEY_KP1                 79
88 #define KEY_KP2                 80
89 #define KEY_KP3                 81
90 #define KEY_KP0                 82
91 #define KEY_KPDOT               83
92
93 #define KEY_ZENKAKUHANKAKU      85
94 #define KEY_102ND               86
95 #define KEY_F11                 87
96 #define KEY_F12                 88
97 #define KEY_RO                  89
98 #define KEY_KATAKANA            90
99 #define KEY_HIRAGANA            91
100 #define KEY_HENKAN              92
101 #define KEY_KATAKANAHIRAGANA    93
102 #define KEY_MUHENKAN            94
103 #define KEY_KPJPCOMMA           95
104 #define KEY_KPENTER             96
105 #define KEY_RIGHTCTRL           97
106 #define KEY_KPSLASH             98
107 #define KEY_SYSRQ               99
108 #define KEY_RIGHTALT            100
109 #define KEY_LINEFEED            101
110 #define KEY_HOME                102
111 #define KEY_UP                  103
112 #define KEY_PAGEUP              104
113 #define KEY_LEFT                105
114 #define KEY_RIGHT               106
115 #define KEY_END                 107
116 #define KEY_DOWN                108
117 #define KEY_PAGEDOWN            109
118 #define KEY_INSERT              110
119 #define KEY_DELETE              111
120 #define KEY_MACRO               112
121 #define KEY_MUTE                113
122 #define KEY_VOLUMEDOWN          114
123 #define KEY_VOLUMEUP            115
124 #define KEY_POWER               116
125 #define KEY_KPEQUAL             117
126 #define KEY_KPPLUSMINUS         118
127 #define KEY_PAUSE               119
128
129 #define KEY_KPCOMMA             121
130 #define KEY_HANGUEL             122
131 #define KEY_HANJA               123
132 #define KEY_YEN                 124
133 #define KEY_LEFTMETA            125
134 #define KEY_RIGHTMETA           126
135 #define KEY_COMPOSE             127
136
137 #define KEY_STOP                128
138 #define KEY_AGAIN               129
139 #define KEY_PROPS               130
140 #define KEY_UNDO                131
141 #define KEY_FRONT               132
142 #define KEY_COPY                133
143 #define KEY_OPEN                134
144 #define KEY_PASTE               135
145 #define KEY_FIND                136
146 #define KEY_CUT                 137
147 #define KEY_HELP                138
148 #define KEY_MENU                139
149 #define KEY_CALC                140
150 #define KEY_SETUP               141
151 #define KEY_SLEEP               142
152 #define KEY_WAKEUP              143
153 #define KEY_FILE                144
154 #define KEY_SENDFILE            145
155 #define KEY_DELETEFILE          146
156 #define KEY_XFER                147
157 #define KEY_PROG1               148
158 #define KEY_PROG2               149
159 #define KEY_WWW                 150
160 #define KEY_MSDOS               151
161 #define KEY_COFFEE              152
162 #define KEY_DIRECTION           153
163 #define KEY_CYCLEWINDOWS        154
164 #define KEY_MAIL                155
165 #define KEY_BOOKMARKS           156
166 #define KEY_COMPUTER            157
167 #define KEY_BACK                158
168 #define KEY_FORWARD             159
169 #define KEY_CLOSECD             160
170 #define KEY_EJECTCD             161
171 #define KEY_EJECTCLOSECD        162
172 #define KEY_NEXTSONG            163
173 #define KEY_PLAYPAUSE           164
174 #define KEY_PREVIOUSSONG        165
175 #define KEY_STOPCD              166
176 #define KEY_RECORD              167
177 #define KEY_REWIND              168
178 #define KEY_PHONE               169
179 #define KEY_ISO                 170
180 #define KEY_CONFIG              171
181 #define KEY_HOMEPAGE            172
182 #define KEY_REFRESH             173
183 #define KEY_EXIT                174
184 #define KEY_MOVE                175
185 #define KEY_EDIT                176
186 #define KEY_SCROLLUP            177
187 #define KEY_SCROLLDOWN          178
188 #define KEY_KPLEFTPAREN         179
189 #define KEY_KPRIGHTPAREN        180
190 #define KEY_NEW                 181
191 #define KEY_REDO                182
192
193 #define KEY_F13                 183
194 #define KEY_F14                 184
195 #define KEY_F15                 185
196 #define KEY_F16                 186
197 #define KEY_F17                 187
198 #define KEY_F18                 188
199 #define KEY_F19                 189
200 #define KEY_F20                 190
201 #define KEY_F21                 191
202 #define KEY_F22                 192
203 #define KEY_F23                 193
204 #define KEY_F24                 194
205
206 #define KEY_PLAYCD              200
207 #define KEY_PAUSECD             201
208 #define KEY_PROG3               202
209 #define KEY_PROG4               203
210 #define KEY_SUSPEND             205
211 #define KEY_CLOSE               206
212 #define KEY_PLAY                207
213 #define KEY_FASTFORWARD         208
214 #define KEY_BASSBOOST           209
215 #define KEY_PRINT               210
216 #define KEY_HP                  211
217 #define KEY_CAMERA              212
218 #define KEY_SOUND               213
219 #define KEY_QUESTION            214
220 #define KEY_EMAIL               215
221 #define KEY_CHAT                216
222 #define KEY_SEARCH              217
223 #define KEY_CONNECT             218
224 #define KEY_FINANCE             219
225 #define KEY_SPORT               220
226 #define KEY_SHOP                221
227 #define KEY_ALTERASE            222
228 #define KEY_CANCEL              223
229 #define KEY_BRIGHTNESSDOWN      224
230 #define KEY_BRIGHTNESSUP        225
231 #define KEY_MEDIA               226
232
233 #define KEY_SWITCHVIDEOMODE     227
234 #define KEY_KBDILLUMTOGGLE      228
235 #define KEY_KBDILLUMDOWN        229
236 #define KEY_KBDILLUMUP          230
237
238 #define KEY_SEND                231
239 #define KEY_REPLY               232
240 #define KEY_FORWARDMAIL         233
241 #define KEY_SAVE                234
242 #define KEY_DOCUMENTS           235
243
244 #define KEY_BATTERY             236
245
246 #define KEY_UNKNOWN             240
247
248 #define BTN_MISC                0x100
249 #define BTN_0                   0x100
250 #define BTN_1                   0x101
251 #define BTN_2                   0x102
252 #define BTN_3                   0x103
253 #define BTN_4                   0x104
254 #define BTN_5                   0x105
255 #define BTN_6                   0x106
256 #define BTN_7                   0x107
257 #define BTN_8                   0x108
258 #define BTN_9                   0x109
259
260 #define BTN_MOUSE               0x110
261 #define BTN_LEFT                0x110
262 #define BTN_RIGHT               0x111
263 #define BTN_MIDDLE              0x112
264 #define BTN_SIDE                0x113
265 #define BTN_EXTRA               0x114
266 #define BTN_FORWARD             0x115
267 #define BTN_BACK                0x116
268 #define BTN_TASK                0x117
269
270 #define BTN_JOYSTICK            0x120
271 #define BTN_TRIGGER             0x120
272 #define BTN_THUMB               0x121
273 #define BTN_THUMB2              0x122
274 #define BTN_TOP                 0x123
275 #define BTN_TOP2                0x124
276 #define BTN_PINKIE              0x125
277 #define BTN_BASE                0x126
278 #define BTN_BASE2               0x127
279 #define BTN_BASE3               0x128
280 #define BTN_BASE4               0x129
281 #define BTN_BASE5               0x12a
282 #define BTN_BASE6               0x12b
283 #define BTN_DEAD                0x12f
284
285 #define BTN_GAMEPAD             0x130
286 #define BTN_A                   0x130
287 #define BTN_B                   0x131
288 #define BTN_C                   0x132
289 #define BTN_X                   0x133
290 #define BTN_Y                   0x134
291 #define BTN_Z                   0x135
292 #define BTN_TL                  0x136
293 #define BTN_TR                  0x137
294 #define BTN_TL2                 0x138
295 #define BTN_TR2                 0x139
296 #define BTN_SELECT              0x13a
297 #define BTN_START               0x13b
298 #define BTN_MODE                0x13c
299 #define BTN_THUMBL              0x13d
300 #define BTN_THUMBR              0x13e
301
302 #define BTN_DIGI                0x140
303 #define BTN_TOOL_PEN            0x140
304 #define BTN_TOOL_RUBBER         0x141
305 #define BTN_TOOL_BRUSH          0x142
306 #define BTN_TOOL_PENCIL         0x143
307 #define BTN_TOOL_AIRBRUSH       0x144
308 #define BTN_TOOL_FINGER         0x145
309 #define BTN_TOOL_MOUSE          0x146
310 #define BTN_TOOL_LENS           0x147
311 #define BTN_TOUCH               0x14a
312 #define BTN_STYLUS              0x14b
313 #define BTN_STYLUS2             0x14c
314 #define BTN_TOOL_DOUBLETAP      0x14d
315 #define BTN_TOOL_TRIPLETAP      0x14e
316
317 #define BTN_WHEEL               0x150
318 #define BTN_GEAR_DOWN           0x150
319 #define BTN_GEAR_UP             0x151
320
321 #define KEY_OK                  0x160
322 #define KEY_SELECT              0x161
323 #define KEY_GOTO                0x162
324 #define KEY_CLEAR               0x163
325 #define KEY_POWER2              0x164
326 #define KEY_OPTION              0x165
327 #define KEY_INFO                0x166
328 #define KEY_TIME                0x167
329 #define KEY_VENDOR              0x168
330 #define KEY_ARCHIVE             0x169
331 #define KEY_PROGRAM             0x16a
332 #define KEY_CHANNEL             0x16b
333 #define KEY_FAVORITES           0x16c
334 #define KEY_EPG                 0x16d
335 #define KEY_PVR                 0x16e
336 #define KEY_MHP                 0x16f
337 #define KEY_LANGUAGE            0x170
338 #define KEY_TITLE               0x171
339 #define KEY_SUBTITLE            0x172
340 #define KEY_ANGLE               0x173
341 #define KEY_ZOOM                0x174
342 #define KEY_MODE                0x175
343 #define KEY_KEYBOARD            0x176
344 #define KEY_SCREEN              0x177
345 #define KEY_PC                  0x178
346 #define KEY_TV                  0x179
347 #define KEY_TV2                 0x17a
348 #define KEY_VCR                 0x17b
349 #define KEY_VCR2                0x17c
350 #define KEY_SAT                 0x17d
351 #define KEY_SAT2                0x17e
352 #define KEY_CD                  0x17f
353 #define KEY_TAPE                0x180
354 #define KEY_RADIO               0x181
355 #define KEY_TUNER               0x182
356 #define KEY_PLAYER              0x183
357 #define KEY_TEXT                0x184
358 #define KEY_DVD                 0x185
359 #define KEY_AUX                 0x186
360 #define KEY_MP3                 0x187
361 #define KEY_AUDIO               0x188
362 #define KEY_VIDEO               0x189
363 #define KEY_DIRECTORY           0x18a
364 #define KEY_LIST                0x18b
365 #define KEY_MEMO                0x18c
366 #define KEY_CALENDAR            0x18d
367 #define KEY_RED                 0x18e
368 #define KEY_GREEN               0x18f
369 #define KEY_YELLOW              0x190
370 #define KEY_BLUE                0x191
371 #define KEY_CHANNELUP           0x192
372 #define KEY_CHANNELDOWN         0x193
373 #define KEY_FIRST               0x194
374 #define KEY_LAST                0x195
375 #define KEY_AB                  0x196
376 #define KEY_NEXT                0x197
377 #define KEY_RESTART             0x198
378 #define KEY_SLOW                0x199
379 #define KEY_SHUFFLE             0x19a
380 #define KEY_BREAK               0x19b
381 #define KEY_PREVIOUS            0x19c
382 #define KEY_DIGITS              0x19d
383 #define KEY_TEEN                0x19e
384 #define KEY_TWEN                0x19f
385
386 #define KEY_DEL_EOL             0x1c0
387 #define KEY_DEL_EOS             0x1c1
388 #define KEY_INS_LINE            0x1c2
389 #define KEY_DEL_LINE            0x1c3
390
391 #define KEY_FN                  0x1d0
392 #define KEY_FN_ESC              0x1d1
393 #define KEY_FN_F1               0x1d2
394 #define KEY_FN_F2               0x1d3
395 #define KEY_FN_F3               0x1d4
396 #define KEY_FN_F4               0x1d5
397 #define KEY_FN_F5               0x1d6
398 #define KEY_FN_F6               0x1d7
399 #define KEY_FN_F7               0x1d8
400 #define KEY_FN_F8               0x1d9
401 #define KEY_FN_F9               0x1da
402 #define KEY_FN_F10              0x1db
403 #define KEY_FN_F11              0x1dc
404 #define KEY_FN_F12              0x1dd
405 #define KEY_FN_1                0x1de
406 #define KEY_FN_2                0x1df
407 #define KEY_FN_D                0x1e0
408 #define KEY_FN_E                0x1e1
409 #define KEY_FN_F                0x1e2
410 #define KEY_FN_S                0x1e3
411 #define KEY_FN_B                0x1e4
412
413 #define KEY_BRL_DOT1            0x1f1
414 #define KEY_BRL_DOT2            0x1f2
415 #define KEY_BRL_DOT3            0x1f3
416 #define KEY_BRL_DOT4            0x1f4
417 #define KEY_BRL_DOT5            0x1f5
418 #define KEY_BRL_DOT6            0x1f6
419 #define KEY_BRL_DOT7            0x1f7
420 #define KEY_BRL_DOT8            0x1f8
421
422 /*
423  * Relative axes
424  */
425
426 #define REL_X                   0x00
427 #define REL_Y                   0x01
428 #define REL_Z                   0x02
429 #define REL_RX                  0x03
430 #define REL_RY                  0x04
431 #define REL_RZ                  0x05
432 #define REL_HWHEEL              0x06
433 #define REL_DIAL                0x07
434 #define REL_WHEEL               0x08
435 #define REL_MISC                0x09
436
437 /*
438  * Absolute axes
439  */
440
441 #define ABS_X                   0x00
442 #define ABS_Y                   0x01
443 #define ABS_Z                   0x02
444 #define ABS_RX                  0x03
445 #define ABS_RY                  0x04
446 #define ABS_RZ                  0x05
447 #define ABS_THROTTLE            0x06
448 #define ABS_RUDDER              0x07
449 #define ABS_WHEEL               0x08
450 #define ABS_GAS                 0x09
451 #define ABS_BRAKE               0x0a
452 #define ABS_HAT0X               0x10
453 #define ABS_HAT0Y               0x11
454 #define ABS_HAT1X               0x12
455 #define ABS_HAT1Y               0x13
456 #define ABS_HAT2X               0x14
457 #define ABS_HAT2Y               0x15
458 #define ABS_HAT3X               0x16
459 #define ABS_HAT3Y               0x17
460 #define ABS_PRESSURE            0x18
461 #define ABS_DISTANCE            0x19
462 #define ABS_TILT_X              0x1a
463 #define ABS_TILT_Y              0x1b
464 #define ABS_TOOL_WIDTH          0x1c
465 #define ABS_VOLUME              0x20
466 #define ABS_MISC                0x28
467
Note: See TracBrowser for help on using the browser.