1use libc::{c_int};
2
3pub const INPUT_PROP_POINTER: c_int = 0x00; pub const INPUT_PROP_DIRECT: c_int = 0x01; pub const INPUT_PROP_BUTTONPAD: c_int = 0x02; pub const INPUT_PROP_SEMI_MT: c_int = 0x03; pub const INPUT_PROP_TOPBUTTONPAD: c_int = 0x04; pub const INPUT_PROP_POINTING_STICK: c_int = 0x05; pub const INPUT_PROP_ACCELEROMETER: c_int = 0x06; pub const INPUT_PROP_MAX: c_int = 0x1f;
12pub const INPUT_PROP_CNT: c_int = INPUT_PROP_MAX + 1;
13
14pub const EV_SYN: c_int = 0x00;
19pub const EV_KEY: c_int = 0x01;
20pub const EV_REL: c_int = 0x02;
21pub const EV_ABS: c_int = 0x03;
22pub const EV_MSC: c_int = 0x04;
23pub const EV_SW: c_int = 0x05;
24pub const EV_LED: c_int = 0x11;
25pub const EV_SND: c_int = 0x12;
26pub const EV_REP: c_int = 0x14;
27pub const EV_FF: c_int = 0x15;
28pub const EV_PWR: c_int = 0x16;
29pub const EV_FF_STATUS: c_int = 0x17;
30pub const EV_MAX: c_int = 0x1f;
31pub const EV_CNT: c_int = EV_MAX + 1;
32
33pub const SYN_REPORT: c_int = 0;
38pub const SYN_CONFIG: c_int = 1;
39pub const SYN_MT_REPORT: c_int = 2;
40pub const SYN_DROPPED: c_int = 3;
41pub const SYN_MAX: c_int = 0xf;
42pub const SYN_CNT: c_int = SYN_MAX + 1;
43
44pub const KEY_RESERVED: c_int = 0;
56pub const KEY_ESC: c_int = 1;
57pub const KEY_1: c_int = 2;
58pub const KEY_2: c_int = 3;
59pub const KEY_3: c_int = 4;
60pub const KEY_4: c_int = 5;
61pub const KEY_5: c_int = 6;
62pub const KEY_6: c_int = 7;
63pub const KEY_7: c_int = 8;
64pub const KEY_8: c_int = 9;
65pub const KEY_9: c_int = 10;
66pub const KEY_10: c_int = 11;
67pub const KEY_MINUS: c_int = 12;
68pub const KEY_EQUAL: c_int = 13;
69pub const KEY_BACKSPACE: c_int = 14;
70pub const KEY_TAB: c_int = 15;
71pub const KEY_Q: c_int = 16;
72pub const KEY_W: c_int = 17;
73pub const KEY_E: c_int = 18;
74pub const KEY_R: c_int = 19;
75pub const KEY_T: c_int = 20;
76pub const KEY_Y: c_int = 21;
77pub const KEY_U: c_int = 22;
78pub const KEY_I: c_int = 23;
79pub const KEY_O: c_int = 24;
80pub const KEY_P: c_int = 25;
81pub const KEY_LEFTBRACE: c_int = 26;
82pub const KEY_RIGHTBRACE: c_int = 27;
83pub const KEY_ENTER: c_int = 28;
84pub const KEY_LEFTCTRL: c_int = 29;
85pub const KEY_A: c_int = 30;
86pub const KEY_S: c_int = 31;
87pub const KEY_D: c_int = 32;
88pub const KEY_F: c_int = 33;
89pub const KEY_G: c_int = 34;
90pub const KEY_H: c_int = 35;
91pub const KEY_J: c_int = 36;
92pub const KEY_K: c_int = 37;
93pub const KEY_L: c_int = 38;
94pub const KEY_SEMICOLON: c_int = 39;
95pub const KEY_APOSTROPHE: c_int = 40;
96pub const KEY_GRAVE: c_int = 41;
97pub const KEY_LEFTSHIFT: c_int = 42;
98pub const KEY_BACKSLASH: c_int = 43;
99pub const KEY_Z: c_int = 44;
100pub const KEY_X: c_int = 45;
101pub const KEY_C: c_int = 46;
102pub const KEY_V: c_int = 47;
103pub const KEY_B: c_int = 48;
104pub const KEY_N: c_int = 49;
105pub const KEY_M: c_int = 50;
106pub const KEY_COMMA: c_int = 51;
107pub const KEY_DOT: c_int = 52;
108pub const KEY_SLASH: c_int = 53;
109pub const KEY_RIGHTSHIFT: c_int = 54;
110pub const KEY_KPASTERISK: c_int = 55;
111pub const KEY_LEFTALT: c_int = 56;
112pub const KEY_SPACE: c_int = 57;
113pub const KEY_CAPSLOCK: c_int = 58;
114pub const KEY_F1: c_int = 59;
115pub const KEY_F2: c_int = 60;
116pub const KEY_F3: c_int = 61;
117pub const KEY_F4: c_int = 62;
118pub const KEY_F5: c_int = 63;
119pub const KEY_F6: c_int = 64;
120pub const KEY_F7: c_int = 65;
121pub const KEY_F8: c_int = 66;
122pub const KEY_F9: c_int = 67;
123pub const KEY_F10: c_int = 68;
124pub const KEY_NUMLOCK: c_int = 69;
125pub const KEY_SCROLLLOCK: c_int = 70;
126pub const KEY_KP7: c_int = 71;
127pub const KEY_KP8: c_int = 72;
128pub const KEY_KP9: c_int = 73;
129pub const KEY_KPMINUS: c_int = 74;
130pub const KEY_KP4: c_int = 75;
131pub const KEY_KP5: c_int = 76;
132pub const KEY_KP6: c_int = 77;
133pub const KEY_KPPLUS: c_int = 78;
134pub const KEY_KP1: c_int = 79;
135pub const KEY_KP2: c_int = 80;
136pub const KEY_KP3: c_int = 81;
137pub const KEY_KP0: c_int = 82;
138pub const KEY_KPDOT: c_int = 83;
139
140pub const KEY_ZENKAKUHANKAKU: c_int = 85;
141pub const KEY_102ND: c_int = 86;
142pub const KEY_F11: c_int = 87;
143pub const KEY_F12: c_int = 88;
144pub const KEY_RO: c_int = 89;
145pub const KEY_KATAKANA: c_int = 90;
146pub const KEY_HIRAGANA: c_int = 91;
147pub const KEY_HENKAN: c_int = 92;
148pub const KEY_KATAKANAHIRAGANA: c_int = 93;
149pub const KEY_MUHENKAN: c_int = 94;
150pub const KEY_KPJPCOMMA: c_int = 95;
151pub const KEY_KPENTER: c_int = 96;
152pub const KEY_RIGHTCTRL: c_int = 97;
153pub const KEY_KPSLASH: c_int = 98;
154pub const KEY_SYSRQ: c_int = 99;
155pub const KEY_RIGHTALT: c_int = 100;
156pub const KEY_LINEFEED: c_int = 101;
157pub const KEY_HOME: c_int = 102;
158pub const KEY_UP: c_int = 103;
159pub const KEY_PAGEUP: c_int = 104;
160pub const KEY_LEFT: c_int = 105;
161pub const KEY_RIGHT: c_int = 106;
162pub const KEY_END: c_int = 107;
163pub const KEY_DOWN: c_int = 108;
164pub const KEY_PAGEDOWN: c_int = 109;
165pub const KEY_INSERT: c_int = 110;
166pub const KEY_DELETE: c_int = 111;
167pub const KEY_MACRO: c_int = 112;
168pub const KEY_MUTE: c_int = 113;
169pub const KEY_VOLUMEDOWN: c_int = 114;
170pub const KEY_VOLUMEUP: c_int = 115;
171pub const KEY_POWER: c_int = 116; pub const KEY_KPEQUAL: c_int = 117;
173pub const KEY_KPPLUSMINUS: c_int = 118;
174pub const KEY_PAUSE: c_int = 119;
175pub const KEY_SCALE: c_int = 120; pub const KEY_KPCOMMA: c_int = 121;
178pub const KEY_HANGEUL: c_int = 122;
179pub const KEY_HANGUEL: c_int = KEY_HANGEUL;
180pub const KEY_HANJA: c_int = 123;
181pub const KEY_YEN: c_int = 124;
182pub const KEY_LEFTMETA: c_int = 125;
183pub const KEY_RIGHTMETA: c_int = 126;
184pub const KEY_COMPOSE: c_int = 127;
185
186pub const KEY_STOP: c_int = 128; pub const KEY_AGAIN: c_int = 129;
188pub const KEY_PROPS: c_int = 130; pub const KEY_UNDO: c_int = 131; pub const KEY_FRONT: c_int = 132;
191pub const KEY_COPY: c_int = 133; pub const KEY_OPEN: c_int = 134; pub const KEY_PASTE: c_int = 135; pub const KEY_FIND: c_int = 136; pub const KEY_CUT: c_int = 137; pub const KEY_HELP: c_int = 138; pub const KEY_MENU: c_int = 139; pub const KEY_CALC: c_int = 140; pub const KEY_SETUP: c_int = 141;
200pub const KEY_SLEEP: c_int = 142; pub const KEY_WAKEUP: c_int = 143; pub const KEY_FILE: c_int = 144; pub const KEY_SENDFILE: c_int = 145;
204pub const KEY_DELETEFILE: c_int = 146;
205pub const KEY_XFER: c_int = 147;
206pub const KEY_PROG1: c_int = 148;
207pub const KEY_PROG2: c_int = 149;
208pub const KEY_WWW: c_int = 150; pub const KEY_MSDOS: c_int = 151;
210pub const KEY_COFFEE: c_int = 152; pub const KEY_SCREENLOCK: c_int = KEY_COFFEE;
212pub const KEY_ROTATE_DISPLAY: c_int = 153; pub const KEY_DIRECTION: c_int = KEY_ROTATE_DISPLAY;
214pub const KEY_CYCLEWINDOWS: c_int = 154;
215pub const KEY_MAIL: c_int = 155;
216pub const KEY_BOOKMARKS: c_int = 156; pub const KEY_COMPUTER: c_int = 157;
218pub const KEY_BACK: c_int = 158; pub const KEY_FORWARD: c_int = 159; pub const KEY_CLOSECD: c_int = 160;
221pub const KEY_EJECTCD: c_int = 161;
222pub const KEY_EJECTCLOSECD: c_int = 162;
223pub const KEY_NEXTSONG: c_int = 163;
224pub const KEY_PLAYPAUSE: c_int = 164;
225pub const KEY_PREVIOUSSONG: c_int = 165;
226pub const KEY_STOPCD: c_int = 166;
227pub const KEY_RECORD: c_int = 167;
228pub const KEY_REWIND: c_int = 168;
229pub const KEY_PHONE: c_int = 169; pub const KEY_ISO: c_int = 170;
231pub const KEY_CONFIG: c_int = 171; pub const KEY_HOMEPAGE: c_int = 172; pub const KEY_REFRESH: c_int = 173; pub const KEY_EXIT: c_int = 174; pub const KEY_MOVE: c_int = 175;
236pub const KEY_EDIT: c_int = 176;
237pub const KEY_SCROLLUP: c_int = 177;
238pub const KEY_SCROLLDOWN: c_int = 178;
239pub const KEY_KPLEFTPAREN: c_int = 179;
240pub const KEY_KPRIGHTPAREN: c_int = 180;
241pub const KEY_NEW: c_int = 181; pub const KEY_REDO: c_int = 182; pub const KEY_F13: c_int = 183;
245pub const KEY_F14: c_int = 184;
246pub const KEY_F15: c_int = 185;
247pub const KEY_F16: c_int = 186;
248pub const KEY_F17: c_int = 187;
249pub const KEY_F18: c_int = 188;
250pub const KEY_F19: c_int = 189;
251pub const KEY_F20: c_int = 190;
252pub const KEY_F21: c_int = 191;
253pub const KEY_F22: c_int = 192;
254pub const KEY_F23: c_int = 193;
255pub const KEY_F24: c_int = 194;
256
257pub const KEY_PLAYCD: c_int = 200;
258pub const KEY_PAUSECD: c_int = 201;
259pub const KEY_PROG3: c_int = 202;
260pub const KEY_PROG4: c_int = 203;
261pub const KEY_DASHBOARD: c_int = 204; pub const KEY_SUSPEND: c_int = 205;
263pub const KEY_CLOSE: c_int = 206; pub const KEY_PLAY: c_int = 207;
265pub const KEY_FASTFORWARD: c_int = 208;
266pub const KEY_BASSBOOST: c_int = 209;
267pub const KEY_PRINT: c_int = 210; pub const KEY_HP: c_int = 211;
269pub const KEY_CAMERA: c_int = 212;
270pub const KEY_SOUND: c_int = 213;
271pub const KEY_QUESTION: c_int = 214;
272pub const KEY_EMAIL: c_int = 215;
273pub const KEY_CHAT: c_int = 216;
274pub const KEY_SEARCH: c_int = 217;
275pub const KEY_CONNECT: c_int = 218;
276pub const KEY_FINANCE: c_int = 219; pub const KEY_SPORT: c_int = 220;
278pub const KEY_SHOP: c_int = 221;
279pub const KEY_ALTERASE: c_int = 222;
280pub const KEY_CANCEL: c_int = 223; pub const KEY_BRIGHTNESSDOWN: c_int = 224;
282pub const KEY_BRIGHTNESSUP: c_int = 225;
283pub const KEY_MEDIA: c_int = 226;
284
285pub const KEY_SWITCHVIDEOMODE: c_int = 227; pub const KEY_KBDILLUMTOGGLE: c_int = 228;
287pub const KEY_KBDILLUMDOWN: c_int = 229;
288pub const KEY_KBDILLUMUP: c_int = 230;
289
290pub const KEY_SEND: c_int = 231; pub const KEY_REPLY: c_int = 232; pub const KEY_FORWARDMAIL: c_int = 233; pub const KEY_SAVE: c_int = 234; pub const KEY_DOCUMENTS: c_int = 235;
295
296pub const KEY_BATTERY: c_int = 236;
297
298pub const KEY_BLUETOOTH: c_int = 237;
299pub const KEY_WLAN: c_int = 238;
300pub const KEY_UWB: c_int = 239;
301
302pub const KEY_UNKNOWN: c_int = 240;
303
304pub const KEY_VIDEO_NEXT: c_int = 241; pub const KEY_VIDEO_PREV: c_int = 242; pub const KEY_BRIGHTNESS_CYCLE: c_int = 243; pub const KEY_BRIGHTNESS_AUTO: c_int = 244; pub const KEY_BRIGHTNESS_ZERO: c_int = KEY_BRIGHTNESS_AUTO;
309pub const KEY_DISPLAY_OFF: c_int = 245; pub const KEY_WWAN: c_int = 246; pub const KEY_WIMAX: c_int = KEY_WWAN;
313pub const KEY_RFKILL: c_int = 247; pub const KEY_MICMUTE: c_int = 248; pub const BTN_MISC: c_int = 0x100;
320pub const BTN_0: c_int = 0x100;
321pub const BTN_1: c_int = 0x101;
322pub const BTN_2: c_int = 0x102;
323pub const BTN_3: c_int = 0x103;
324pub const BTN_4: c_int = 0x104;
325pub const BTN_5: c_int = 0x105;
326pub const BTN_6: c_int = 0x106;
327pub const BTN_7: c_int = 0x107;
328pub const BTN_8: c_int = 0x108;
329pub const BTN_9: c_int = 0x109;
330
331pub const BTN_MOUSE: c_int = 0x110;
332pub const BTN_LEFT: c_int = 0x110;
333pub const BTN_RIGHT: c_int = 0x111;
334pub const BTN_MIDDLE: c_int = 0x112;
335pub const BTN_SIDE: c_int = 0x113;
336pub const BTN_EXTRA: c_int = 0x114;
337pub const BTN_FORWARD: c_int = 0x115;
338pub const BTN_BACK: c_int = 0x116;
339pub const BTN_TASK: c_int = 0x117;
340
341pub const BTN_JOYSTICK: c_int = 0x120;
342pub const BTN_TRIGGER: c_int = 0x120;
343pub const BTN_THUMB: c_int = 0x121;
344pub const BTN_THUMB2: c_int = 0x122;
345pub const BTN_TOP: c_int = 0x123;
346pub const BTN_TOP2: c_int = 0x124;
347pub const BTN_PINKIE: c_int = 0x125;
348pub const BTN_BASE: c_int = 0x126;
349pub const BTN_BASE2: c_int = 0x127;
350pub const BTN_BASE3: c_int = 0x128;
351pub const BTN_BASE4: c_int = 0x129;
352pub const BTN_BASE5: c_int = 0x12a;
353pub const BTN_BASE6: c_int = 0x12b;
354pub const BTN_DEAD: c_int = 0x12f;
355
356pub const BTN_GAMEPAD: c_int = 0x130;
357pub const BTN_SOUTH: c_int = 0x130;
358pub const BTN_A: c_int = BTN_SOUTH;
359pub const BTN_EAST: c_int = 0x131;
360pub const BTN_B: c_int = BTN_EAST;
361pub const BTN_C: c_int = 0x132;
362pub const BTN_NORTH: c_int = 0x133;
363pub const BTN_X: c_int = BTN_NORTH;
364pub const BTN_WEST: c_int = 0x134;
365pub const BTN_Y: c_int = BTN_WEST;
366pub const BTN_Z: c_int = 0x135;
367pub const BTN_TL: c_int = 0x136;
368pub const BTN_TR: c_int = 0x137;
369pub const BTN_TL2: c_int = 0x138;
370pub const BTN_TR2: c_int = 0x139;
371pub const BTN_SELECT: c_int = 0x13a;
372pub const BTN_START: c_int = 0x13b;
373pub const BTN_MODE: c_int = 0x13c;
374pub const BTN_THUMBL: c_int = 0x13d;
375pub const BTN_THUMBR: c_int = 0x13e;
376
377pub const BTN_DIGI: c_int = 0x140;
378pub const BTN_TOOL_PEN: c_int = 0x140;
379pub const BTN_TOOL_RUBBER: c_int = 0x141;
380pub const BTN_TOOL_BRUSH: c_int = 0x142;
381pub const BTN_TOOL_PENCIL: c_int = 0x143;
382pub const BTN_TOOL_AIRBRUSH: c_int = 0x144;
383pub const BTN_TOOL_FINGER: c_int = 0x145;
384pub const BTN_TOOL_MOUSE: c_int = 0x146;
385pub const BTN_TOOL_LENS: c_int = 0x147;
386pub const BTN_TOOL_QUINTTAP: c_int = 0x148; pub const BTN_TOUCH: c_int = 0x14a;
388pub const BTN_STYLUS: c_int = 0x14b;
389pub const BTN_STYLUS2: c_int = 0x14c;
390pub const BTN_TOOL_DOUBLETAP: c_int = 0x14d;
391pub const BTN_TOOL_TRIPLETAP: c_int = 0x14e;
392pub const BTN_TOOL_QUADTAP: c_int = 0x14f; pub const BTN_WHEEL: c_int = 0x150;
395pub const BTN_GEAR_DOWN: c_int = 0x150;
396pub const BTN_GEAR_UP: c_int = 0x151;
397
398pub const KEY_OK: c_int = 0x160;
399pub const KEY_SELECT: c_int = 0x161;
400pub const KEY_GOTO: c_int = 0x162;
401pub const KEY_CLEAR: c_int = 0x163;
402pub const KEY_POWER2: c_int = 0x164;
403pub const KEY_OPTION: c_int = 0x165;
404pub const KEY_INFO: c_int = 0x166; pub const KEY_TIME: c_int = 0x167;
406pub const KEY_VENDOR: c_int = 0x168;
407pub const KEY_ARCHIVE: c_int = 0x169;
408pub const KEY_PROGRAM: c_int = 0x16a; pub const KEY_CHANNEL: c_int = 0x16b;
410pub const KEY_FAVORITES: c_int = 0x16c;
411pub const KEY_EPG: c_int = 0x16d;
412pub const KEY_PVR: c_int = 0x16e; pub const KEY_MHP: c_int = 0x16f;
414pub const KEY_LANGUAGE: c_int = 0x170;
415pub const KEY_TITLE: c_int = 0x171;
416pub const KEY_SUBTITLE: c_int = 0x172;
417pub const KEY_ANGLE: c_int = 0x173;
418pub const KEY_ZOOM: c_int = 0x174;
419pub const KEY_MODE: c_int = 0x175;
420pub const KEY_KEYBOARD: c_int = 0x176;
421pub const KEY_SCREEN: c_int = 0x177;
422pub const KEY_PC: c_int = 0x178; pub const KEY_TV: c_int = 0x179; pub const KEY_TV2: c_int = 0x17a; pub const KEY_VCR: c_int = 0x17b; pub const KEY_VCR2: c_int = 0x17c; pub const KEY_SAT: c_int = 0x17d; pub const KEY_SAT2: c_int = 0x17e;
429pub const KEY_CD: c_int = 0x17f; pub const KEY_TAPE: c_int = 0x180; pub const KEY_RADIO: c_int = 0x181;
432pub const KEY_TUNER: c_int = 0x182; pub const KEY_PLAYER: c_int = 0x183;
434pub const KEY_TEXT: c_int = 0x184;
435pub const KEY_DVD: c_int = 0x185; pub const KEY_AUX: c_int = 0x186;
437pub const KEY_MP3: c_int = 0x187;
438pub const KEY_AUDIO: c_int = 0x188; pub const KEY_VIDEO: c_int = 0x189; pub const KEY_DIRECTORY: c_int = 0x18a;
441pub const KEY_LIST: c_int = 0x18b;
442pub const KEY_MEMO: c_int = 0x18c; pub const KEY_CALENDAR: c_int = 0x18d;
444pub const KEY_RED: c_int = 0x18e;
445pub const KEY_GREEN: c_int = 0x18f;
446pub const KEY_YELLOW: c_int = 0x190;
447pub const KEY_BLUE: c_int = 0x191;
448pub const KEY_CHANNELUP: c_int = 0x192; pub const KEY_CHANNELDOWN: c_int = 0x193; pub const KEY_FIRST: c_int = 0x194;
451pub const KEY_LAST: c_int = 0x195; pub const KEY_AB: c_int = 0x196;
453pub const KEY_NEXT: c_int = 0x197;
454pub const KEY_RESTART: c_int = 0x198;
455pub const KEY_SLOW: c_int = 0x199;
456pub const KEY_SHUFFLE: c_int = 0x19a;
457pub const KEY_BREAK: c_int = 0x19b;
458pub const KEY_PREVIOUS: c_int = 0x19c;
459pub const KEY_DIGITS: c_int = 0x19d;
460pub const KEY_TEEN: c_int = 0x19e;
461pub const KEY_TWEN: c_int = 0x19f;
462pub const KEY_VIDEOPHONE: c_int = 0x1a0; pub const KEY_GAMES: c_int = 0x1a1; pub const KEY_ZOOMIN: c_int = 0x1a2; pub const KEY_ZOOMOUT: c_int = 0x1a3; pub const KEY_ZOOMRESET: c_int = 0x1a4; pub const KEY_WORDPROCESSOR: c_int = 0x1a5; pub const KEY_EDITOR: c_int = 0x1a6; pub const KEY_SPREADSHEET: c_int = 0x1a7; pub const KEY_GRAPHICSEDITOR: c_int = 0x1a8; pub const KEY_PRESENTATION: c_int = 0x1a9; pub const KEY_DATABASE: c_int = 0x1aa; pub const KEY_NEWS: c_int = 0x1ab; pub const KEY_VOICEMAIL: c_int = 0x1ac; pub const KEY_ADDRESSBOOK: c_int = 0x1ad; pub const KEY_MESSENGER: c_int = 0x1ae; pub const KEY_DISPLAYTOGGLE: c_int = 0x1af; pub const KEY_BRIGHTNESS_TOGGLE: c_int = KEY_DISPLAYTOGGLE;
479pub const KEY_SPELLCHECK: c_int = 0x1b0; pub const KEY_LOGOFF: c_int = 0x1b1; pub const KEY_DOLLAR: c_int = 0x1b2;
483pub const KEY_EURO: c_int = 0x1b3;
484
485pub const KEY_FRAMEBACK: c_int = 0x1b4; pub const KEY_FRAMEFORWARD: c_int = 0x1b5;
487pub const KEY_CONTEXT_MENU: c_int = 0x1b6; pub const KEY_MEDIA_REPEAT: c_int = 0x1b7; pub const KEY_10CHANNELSUP: c_int = 0x1b8; pub const KEY_10CHANNELSDOWN: c_int = 0x1b9; pub const KEY_IMAGES: c_int = 0x1ba; pub const KEY_DEL_EOL: c_int = 0x1c0;
494pub const KEY_DEL_EOS: c_int = 0x1c1;
495pub const KEY_INS_LINE: c_int = 0x1c2;
496pub const KEY_DEL_LINE: c_int = 0x1c3;
497
498pub const KEY_FN: c_int = 0x1d0;
499pub const KEY_FN_ESC: c_int = 0x1d1;
500pub const KEY_FN_F1: c_int = 0x1d2;
501pub const KEY_FN_F2: c_int = 0x1d3;
502pub const KEY_FN_F3: c_int = 0x1d4;
503pub const KEY_FN_F4: c_int = 0x1d5;
504pub const KEY_FN_F5: c_int = 0x1d6;
505pub const KEY_FN_F6: c_int = 0x1d7;
506pub const KEY_FN_F7: c_int = 0x1d8;
507pub const KEY_FN_F8: c_int = 0x1d9;
508pub const KEY_FN_F9: c_int = 0x1da;
509pub const KEY_FN_F10: c_int = 0x1db;
510pub const KEY_FN_F11: c_int = 0x1dc;
511pub const KEY_FN_F12: c_int = 0x1dd;
512pub const KEY_FN_1: c_int = 0x1de;
513pub const KEY_FN_2: c_int = 0x1df;
514pub const KEY_FN_D: c_int = 0x1e0;
515pub const KEY_FN_E: c_int = 0x1e1;
516pub const KEY_FN_F: c_int = 0x1e2;
517pub const KEY_FN_S: c_int = 0x1e3;
518pub const KEY_FN_B: c_int = 0x1e4;
519
520pub const KEY_BRL_DOT1: c_int = 0x1f1;
521pub const KEY_BRL_DOT2: c_int = 0x1f2;
522pub const KEY_BRL_DOT3: c_int = 0x1f3;
523pub const KEY_BRL_DOT4: c_int = 0x1f4;
524pub const KEY_BRL_DOT5: c_int = 0x1f5;
525pub const KEY_BRL_DOT6: c_int = 0x1f6;
526pub const KEY_BRL_DOT7: c_int = 0x1f7;
527pub const KEY_BRL_DOT8: c_int = 0x1f8;
528pub const KEY_BRL_DOT9: c_int = 0x1f9;
529pub const KEY_BRL_DOT10: c_int = 0x1fa;
530
531pub const KEY_NUMERIC_0: c_int = 0x200; pub const KEY_NUMERIC_1: c_int = 0x201; pub const KEY_NUMERIC_2: c_int = 0x202;
534pub const KEY_NUMERIC_3: c_int = 0x203;
535pub const KEY_NUMERIC_4: c_int = 0x204;
536pub const KEY_NUMERIC_5: c_int = 0x205;
537pub const KEY_NUMERIC_6: c_int = 0x206;
538pub const KEY_NUMERIC_7: c_int = 0x207;
539pub const KEY_NUMERIC_8: c_int = 0x208;
540pub const KEY_NUMERIC_9: c_int = 0x209;
541pub const KEY_NUMERIC_STAR: c_int = 0x20a;
542pub const KEY_NUMERIC_POUND: c_int = 0x20b;
543pub const KEY_NUMERIC_A: c_int = 0x20c; pub const KEY_NUMERIC_B: c_int = 0x20d;
545pub const KEY_NUMERIC_C: c_int = 0x20e;
546pub const KEY_NUMERIC_D: c_int = 0x20f;
547
548pub const KEY_CAMERA_FOCUS: c_int = 0x210;
549pub const KEY_WPS_BUTTON: c_int = 0x211; pub const KEY_TOUCHPAD_TOGGLE: c_int = 0x212; pub const KEY_TOUCHPAD_ON: c_int = 0x213;
553pub const KEY_TOUCHPAD_OFF: c_int = 0x214;
554
555pub const KEY_CAMERA_ZOOMIN: c_int = 0x215;
556pub const KEY_CAMERA_ZOOMOUT: c_int = 0x216;
557pub const KEY_CAMERA_UP: c_int = 0x217;
558pub const KEY_CAMERA_DOWN: c_int = 0x218;
559pub const KEY_CAMERA_LEFT: c_int = 0x219;
560pub const KEY_CAMERA_RIGHT: c_int = 0x21a;
561
562pub const KEY_ATTENDANT_ON: c_int = 0x21b;
563pub const KEY_ATTENDANT_OFF: c_int = 0x21c;
564pub const KEY_ATTENDANT_TOGGLE: c_int = 0x21d; pub const KEY_LIGHTS_TOGGLE: c_int = 0x21e; pub const BTN_DPAD_UP: c_int = 0x220;
568pub const BTN_DPAD_DOWN: c_int = 0x221;
569pub const BTN_DPAD_LEFT: c_int = 0x222;
570pub const BTN_DPAD_RIGHT: c_int = 0x223;
571
572pub const KEY_ALS_TOGGLE: c_int = 0x230; pub const KEY_BUTTONCONFIG: c_int = 0x240; pub const KEY_TASKMANAGER: c_int = 0x241; pub const KEY_JOURNAL: c_int = 0x242; pub const KEY_CONTROLPANEL: c_int = 0x243; pub const KEY_APPSELECT: c_int = 0x244; pub const KEY_SCREENSAVER: c_int = 0x245; pub const KEY_VOICECOMMAND: c_int = 0x246; pub const KEY_BRIGHTNESS_MIN: c_int = 0x250; pub const KEY_BRIGHTNESS_MAX: c_int = 0x251; pub const KEY_KBDINPUTASSIST_PREV: c_int = 0x260;
586pub const KEY_KBDINPUTASSIST_NEXT: c_int = 0x261;
587pub const KEY_KBDINPUTASSIST_PREVGROUP: c_int = 0x262;
588pub const KEY_KBDINPUTASSIST_NEXTGROUP: c_int = 0x263;
589pub const KEY_KBDINPUTASSIST_ACCEPT: c_int = 0x264;
590pub const KEY_KBDINPUTASSIST_CANCEL: c_int = 0x265;
591
592pub const BTN_TRIGGER_HAPPY: c_int = 0x2c0;
593pub const BTN_TRIGGER_HAPPY1: c_int = 0x2c0;
594pub const BTN_TRIGGER_HAPPY2: c_int = 0x2c1;
595pub const BTN_TRIGGER_HAPPY3: c_int = 0x2c2;
596pub const BTN_TRIGGER_HAPPY4: c_int = 0x2c3;
597pub const BTN_TRIGGER_HAPPY5: c_int = 0x2c4;
598pub const BTN_TRIGGER_HAPPY6: c_int = 0x2c5;
599pub const BTN_TRIGGER_HAPPY7: c_int = 0x2c6;
600pub const BTN_TRIGGER_HAPPY8: c_int = 0x2c7;
601pub const BTN_TRIGGER_HAPPY9: c_int = 0x2c8;
602pub const BTN_TRIGGER_HAPPY10: c_int = 0x2c9;
603pub const BTN_TRIGGER_HAPPY11: c_int = 0x2ca;
604pub const BTN_TRIGGER_HAPPY12: c_int = 0x2cb;
605pub const BTN_TRIGGER_HAPPY13: c_int = 0x2cc;
606pub const BTN_TRIGGER_HAPPY14: c_int = 0x2cd;
607pub const BTN_TRIGGER_HAPPY15: c_int = 0x2ce;
608pub const BTN_TRIGGER_HAPPY16: c_int = 0x2cf;
609pub const BTN_TRIGGER_HAPPY17: c_int = 0x2d0;
610pub const BTN_TRIGGER_HAPPY18: c_int = 0x2d1;
611pub const BTN_TRIGGER_HAPPY19: c_int = 0x2d2;
612pub const BTN_TRIGGER_HAPPY20: c_int = 0x2d3;
613pub const BTN_TRIGGER_HAPPY21: c_int = 0x2d4;
614pub const BTN_TRIGGER_HAPPY22: c_int = 0x2d5;
615pub const BTN_TRIGGER_HAPPY23: c_int = 0x2d6;
616pub const BTN_TRIGGER_HAPPY24: c_int = 0x2d7;
617pub const BTN_TRIGGER_HAPPY25: c_int = 0x2d8;
618pub const BTN_TRIGGER_HAPPY26: c_int = 0x2d9;
619pub const BTN_TRIGGER_HAPPY27: c_int = 0x2da;
620pub const BTN_TRIGGER_HAPPY28: c_int = 0x2db;
621pub const BTN_TRIGGER_HAPPY29: c_int = 0x2dc;
622pub const BTN_TRIGGER_HAPPY30: c_int = 0x2dd;
623pub const BTN_TRIGGER_HAPPY31: c_int = 0x2de;
624pub const BTN_TRIGGER_HAPPY32: c_int = 0x2df;
625pub const BTN_TRIGGER_HAPPY33: c_int = 0x2e0;
626pub const BTN_TRIGGER_HAPPY34: c_int = 0x2e1;
627pub const BTN_TRIGGER_HAPPY35: c_int = 0x2e2;
628pub const BTN_TRIGGER_HAPPY36: c_int = 0x2e3;
629pub const BTN_TRIGGER_HAPPY37: c_int = 0x2e4;
630pub const BTN_TRIGGER_HAPPY38: c_int = 0x2e5;
631pub const BTN_TRIGGER_HAPPY39: c_int = 0x2e6;
632pub const BTN_TRIGGER_HAPPY40: c_int = 0x2e7;
633
634pub const KEY_MIN_INTERESTING: c_int = KEY_MUTE;
636pub const KEY_MAX: c_int = 0x2ff;
637pub const KEY_CNT: c_int = KEY_MAX + 1;
638
639pub const REL_X: c_int = 0x00;
644pub const REL_Y: c_int = 0x01;
645pub const REL_Z: c_int = 0x02;
646pub const REL_RX: c_int = 0x03;
647pub const REL_RY: c_int = 0x04;
648pub const REL_RZ: c_int = 0x05;
649pub const REL_HWHEEL: c_int = 0x06;
650pub const REL_DIAL: c_int = 0x07;
651pub const REL_WHEEL: c_int = 0x08;
652pub const REL_MISC: c_int = 0x09;
653pub const REL_MAX: c_int = 0x0f;
654pub const REL_CNT: c_int = REL_MAX + 1;
655
656pub const ABS_X: c_int = 0x00;
661pub const ABS_Y: c_int = 0x01;
662pub const ABS_Z: c_int = 0x02;
663pub const ABS_RX: c_int = 0x03;
664pub const ABS_RY: c_int = 0x04;
665pub const ABS_RZ: c_int = 0x05;
666pub const ABS_THROTTLE: c_int = 0x06;
667pub const ABS_RUDDER: c_int = 0x07;
668pub const ABS_WHEEL: c_int = 0x08;
669pub const ABS_GAS: c_int = 0x09;
670pub const ABS_BRAKE: c_int = 0x0a;
671pub const ABS_HAT0X: c_int = 0x10;
672pub const ABS_HAT0Y: c_int = 0x11;
673pub const ABS_HAT1X: c_int = 0x12;
674pub const ABS_HAT1Y: c_int = 0x13;
675pub const ABS_HAT2X: c_int = 0x14;
676pub const ABS_HAT2Y: c_int = 0x15;
677pub const ABS_HAT3X: c_int = 0x16;
678pub const ABS_HAT3Y: c_int = 0x17;
679pub const ABS_PRESSURE: c_int = 0x18;
680pub const ABS_DISTANCE: c_int = 0x19;
681pub const ABS_TILT_X: c_int = 0x1a;
682pub const ABS_TILT_Y: c_int = 0x1b;
683pub const ABS_TOOL_WIDTH: c_int = 0x1c;
684
685pub const ABS_VOLUME: c_int = 0x20;
686
687pub const ABS_MISC: c_int = 0x28;
688
689pub const ABS_MT_SLOT: c_int = 0x2f; pub const ABS_MT_TOUCH_MAJOR: c_int = 0x30; pub const ABS_MT_TOUCH_MINOR: c_int = 0x31; pub const ABS_MT_WIDTH_MAJOR: c_int = 0x32; pub const ABS_MT_WIDTH_MINOR: c_int = 0x33; pub const ABS_MT_ORIENTATION: c_int = 0x34; pub const ABS_MT_POSITION_X: c_int = 0x35; pub const ABS_MT_POSITION_Y: c_int = 0x36; pub const ABS_MT_TOOL_TYPE: c_int = 0x37; pub const ABS_MT_BLOB_ID: c_int = 0x38; pub const ABS_MT_TRACKING_ID: c_int = 0x39; pub const ABS_MT_PRESSURE: c_int = 0x3a; pub const ABS_MT_DISTANCE: c_int = 0x3b; pub const ABS_MT_TOOL_X: c_int = 0x3c; pub const ABS_MT_TOOL_Y: c_int = 0x3d; pub const ABS_MAX: c_int = 0x3f;
707pub const ABS_CNT: c_int = ABS_MAX + 1;
708
709pub const SW_LID: c_int = 0x00; pub const SW_TABLET_MODE: c_int = 0x01; pub const SW_HEADPHONE_INSERT: c_int = 0x02; pub const SW_RFKILL_ALL: c_int = 0x03; pub const SW_RADIO: c_int = SW_RFKILL_ALL; pub const SW_MICROPHONE_INSERT: c_int = 0x04; pub const SW_DOCK: c_int = 0x05; pub const SW_LINEOUT_INSERT: c_int = 0x06; pub const SW_JACK_PHYSICAL_INSERT: c_int = 0x07; pub const SW_VIDEOOUT_INSERT: c_int = 0x08; pub const SW_CAMERA_LENS_COVER: c_int = 0x09; pub const SW_KEYPAD_SLIDE: c_int = 0x0a; pub const SW_FRONT_PROXIMITY: c_int = 0x0b; pub const SW_ROTATE_LOCK: c_int = 0x0c; pub const SW_LINEIN_INSERT: c_int = 0x0d; pub const SW_MUTE_DEVICE: c_int = 0x0e; pub const SW_MAX: c_int = 0x0f;
730pub const SW_CNT: c_int = SW_MAX + 1;
731
732pub const MSC_SERIAL: c_int = 0x00;
737pub const MSC_PULSELED: c_int = 0x01;
738pub const MSC_GESTURE: c_int = 0x02;
739pub const MSC_RAW: c_int = 0x03;
740pub const MSC_SCAN: c_int = 0x04;
741pub const MSC_TIMESTAMP: c_int = 0x05;
742pub const MSC_MAX: c_int = 0x07;
743pub const MSC_CNT: c_int = MSC_MAX + 1;
744
745pub const LED_NUML: c_int = 0x00;
750pub const LED_CAPSL: c_int = 0x01;
751pub const LED_SCROLLL: c_int = 0x02;
752pub const LED_COMPOSE: c_int = 0x03;
753pub const LED_KANA: c_int = 0x04;
754pub const LED_SLEEP: c_int = 0x05;
755pub const LED_SUSPEND: c_int = 0x06;
756pub const LED_MUTE: c_int = 0x07;
757pub const LED_MISC: c_int = 0x08;
758pub const LED_MAIL: c_int = 0x09;
759pub const LED_CHARGING: c_int = 0x0a;
760pub const LED_MAX: c_int = 0x0f;
761pub const LED_CNT: c_int = LED_MAX + 1;
762
763pub const REP_DELAY: c_int = 0x00;
768pub const REP_PERIOD: c_int = 0x01;
769pub const REP_MAX: c_int = 0x01;
770pub const REP_CNT: c_int = REP_MAX + 1;
771
772pub const SND_CLICK: c_int = 0x00;
777pub const SND_BELL: c_int = 0x01;
778pub const SND_TONE: c_int = 0x02;
779pub const SND_MAX: c_int = 0x07;
780pub const SND_CNT: c_int = SND_MAX + 1;