bionic
Révision | 217e95bd572b38bdd4d4c4b472bbc165356908b0 (tree) |
---|---|
l'heure | 2011-06-10 00:18:09 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
input.h: update to EV_VERSION 0x010001
This is required by newer kernel(>=2.6.37).
@@ -24,7 +24,7 @@ struct input_event { | ||
24 | 24 | __s32 value; |
25 | 25 | }; |
26 | 26 | |
27 | -#define EV_VERSION 0x010000 | |
27 | +#define EV_VERSION 0x010001 | |
28 | 28 | |
29 | 29 | struct input_id { |
30 | 30 | __u16 bustype; |
@@ -39,18 +39,31 @@ struct input_absinfo { | ||
39 | 39 | __s32 maximum; |
40 | 40 | __s32 fuzz; |
41 | 41 | __s32 flat; |
42 | + __s32 resolution; | |
42 | 43 | }; |
43 | 44 | |
45 | +struct input_keymap_entry { | |
46 | + __u8 flags; | |
47 | + __u8 len; | |
48 | + __u16 index; | |
49 | + __u32 keycode; | |
50 | + __u8 scancode[32]; | |
51 | +}; | |
52 | + | |
53 | + | |
44 | 54 | #define EVIOCGVERSION _IOR('E', 0x01, int) |
45 | 55 | #define EVIOCGID _IOR('E', 0x02, struct input_id) |
46 | -#define EVIOCGREP _IOR('E', 0x03, int[2]) | |
47 | -#define EVIOCSREP _IOW('E', 0x03, int[2]) | |
48 | -#define EVIOCGKEYCODE _IOR('E', 0x04, int[2]) | |
49 | -#define EVIOCSKEYCODE _IOW('E', 0x04, int[2]) | |
56 | +#define EVIOCGREP _IOR('E', 0x03, unsigned int[2]) | |
57 | +#define EVIOCSREP _IOW('E', 0x03, unsigned int[2]) | |
58 | +#define EVIOCGKEYCODE _IOR('E', 0x04, unsigned int[2]) | |
59 | +#define EVIOCGKEYCODE_V2 _IOR('E', 0x04, struct input_keymap_entry) | |
60 | +#define EVIOCSKEYCODE _IOW('E', 0x04, unsigned int[2]) | |
61 | +#define EVIOCSKEYCODE_V2 _IOW('E', 0x04, struct input_keymap_entry) | |
50 | 62 | |
51 | 63 | #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) |
52 | 64 | #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) |
53 | 65 | #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) |
66 | +#define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) | |
54 | 67 | |
55 | 68 | #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) |
56 | 69 | #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) |
@@ -204,6 +217,7 @@ struct input_absinfo { | ||
204 | 217 | #define KEY_KPEQUAL 117 |
205 | 218 | #define KEY_KPPLUSMINUS 118 |
206 | 219 | #define KEY_PAUSE 119 |
220 | +#define KEY_SCALE 120 | |
207 | 221 | |
208 | 222 | #define KEY_KPCOMMA 121 |
209 | 223 | #define KEY_HANGEUL 122 |
@@ -239,6 +253,7 @@ struct input_absinfo { | ||
239 | 253 | #define KEY_WWW 150 |
240 | 254 | #define KEY_MSDOS 151 |
241 | 255 | #define KEY_COFFEE 152 |
256 | +#define KEY_SCREENLOCK KEY_COFFEE | |
242 | 257 | #define KEY_DIRECTION 153 |
243 | 258 | #define KEY_CYCLEWINDOWS 154 |
244 | 259 | #define KEY_MAIL 155 |
@@ -333,8 +348,21 @@ struct input_absinfo { | ||
333 | 348 | |
334 | 349 | #define KEY_BATTERY 236 |
335 | 350 | |
351 | +#define KEY_BLUETOOTH 237 | |
352 | +#define KEY_WLAN 238 | |
353 | +#define KEY_UWB 239 | |
354 | + | |
336 | 355 | #define KEY_UNKNOWN 240 |
337 | 356 | |
357 | +#define KEY_VIDEO_NEXT 241 | |
358 | +#define KEY_VIDEO_PREV 242 | |
359 | +#define KEY_BRIGHTNESS_CYCLE 243 | |
360 | +#define KEY_BRIGHTNESS_ZERO 244 | |
361 | +#define KEY_DISPLAY_OFF 245 | |
362 | + | |
363 | +#define KEY_WIMAX 246 | |
364 | +#define KEY_RFKILL 247 | |
365 | + | |
338 | 366 | #define BTN_MISC 0x100 |
339 | 367 | #define BTN_0 0x100 |
340 | 368 | #define BTN_1 0x101 |
@@ -403,6 +431,7 @@ struct input_absinfo { | ||
403 | 431 | #define BTN_STYLUS2 0x14c |
404 | 432 | #define BTN_TOOL_DOUBLETAP 0x14d |
405 | 433 | #define BTN_TOOL_TRIPLETAP 0x14e |
434 | +#define BTN_TOOL_QUADTAP 0x14f | |
406 | 435 | |
407 | 436 | #define BTN_WHEEL 0x150 |
408 | 437 | #define BTN_GEAR_DOWN 0x150 |
@@ -472,6 +501,34 @@ struct input_absinfo { | ||
472 | 501 | #define KEY_DIGITS 0x19d |
473 | 502 | #define KEY_TEEN 0x19e |
474 | 503 | #define KEY_TWEN 0x19f |
504 | +#define KEY_VIDEOPHONE 0x1a0 | |
505 | +#define KEY_GAMES 0x1a1 | |
506 | +#define KEY_ZOOMIN 0x1a2 | |
507 | +#define KEY_ZOOMOUT 0x1a3 | |
508 | +#define KEY_ZOOMRESET 0x1a4 | |
509 | +#define KEY_WORDPROCESSOR 0x1a5 | |
510 | +#define KEY_EDITOR 0x1a6 | |
511 | +#define KEY_SPREADSHEET 0x1a7 | |
512 | +#define KEY_GRAPHICSEDITOR 0x1a8 | |
513 | +#define KEY_PRESENTATION 0x1a9 | |
514 | +#define KEY_DATABASE 0x1aa | |
515 | +#define KEY_NEWS 0x1ab | |
516 | +#define KEY_VOICEMAIL 0x1ac | |
517 | +#define KEY_ADDRESSBOOK 0x1ad | |
518 | +#define KEY_MESSENGER 0x1ae | |
519 | +#define KEY_DISPLAYTOGGLE 0x1af | |
520 | +#define KEY_SPELLCHECK 0x1b0 | |
521 | +#define KEY_LOGOFF 0x1b1 | |
522 | + | |
523 | +#define KEY_DOLLAR 0x1b2 | |
524 | +#define KEY_EURO 0x1b3 | |
525 | + | |
526 | +#define KEY_FRAMEBACK 0x1b4 | |
527 | +#define KEY_FRAMEFORWARD 0x1b5 | |
528 | +#define KEY_CONTEXT_MENU 0x1b6 | |
529 | +#define KEY_MEDIA_REPEAT 0x1b7 | |
530 | +#define KEY_10CHANNELSUP 0x1b8 | |
531 | +#define KEY_10CHANNELSDOWN 0x1b9 | |
475 | 532 | |
476 | 533 | #define KEY_DEL_EOL 0x1c0 |
477 | 534 | #define KEY_DEL_EOS 0x1c1 |
@@ -508,6 +565,8 @@ struct input_absinfo { | ||
508 | 565 | #define KEY_BRL_DOT6 0x1f6 |
509 | 566 | #define KEY_BRL_DOT7 0x1f7 |
510 | 567 | #define KEY_BRL_DOT8 0x1f8 |
568 | +#define KEY_BRL_DOT9 0x1f9 | |
569 | +#define KEY_BRL_DOT10 0x1fa | |
511 | 570 | |
512 | 571 | #define KEY_MIN_INTERESTING KEY_MUTE |
513 | 572 | #define KEY_MAX 0x1ff |