1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _INPUT_H 20#define _INPUT_H 21#include <sys/time.h> 22#include <sys/ioctl.h> 23#include <sys/types.h> 24#include <linux/types.h> 25struct input_event { 26 struct timeval time; 27 __u16 type; 28 __u16 code; 29 __s32 value; 30}; 31#define EV_VERSION 0x010001 32struct input_id { 33 __u16 bustype; 34 __u16 vendor; 35 __u16 product; 36 __u16 version; 37}; 38struct input_absinfo { 39 __s32 value; 40 __s32 minimum; 41 __s32 maximum; 42 __s32 fuzz; 43 __s32 flat; 44 __s32 resolution; 45}; 46struct input_keymap_entry { 47#define INPUT_KEYMAP_BY_INDEX (1 << 0) 48 __u8 flags; 49 __u8 len; 50 __u16 index; 51 __u32 keycode; 52 __u8 scancode[32]; 53}; 54#define EVIOCGVERSION _IOR('E', 0x01, int) 55#define EVIOCGID _IOR('E', 0x02, struct input_id) 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) 62#define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) 63#define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) 64#define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) 65#define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) 66#define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) 67#define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) 68#define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) 69#define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) 70#define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len) 71#define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo) 72#define EVIOCSABS(abs) _IOW('E', 0xc0 + abs, struct input_absinfo) 73#define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect)) 74#define EVIOCRMFF _IOW('E', 0x81, int) 75#define EVIOCGEFFECTS _IOR('E', 0x84, int) 76#define EVIOCGRAB _IOW('E', 0x90, int) 77#define INPUT_PROP_POINTER 0x00 78#define INPUT_PROP_DIRECT 0x01 79#define INPUT_PROP_BUTTONPAD 0x02 80#define INPUT_PROP_SEMI_MT 0x03 81#define INPUT_PROP_MAX 0x1f 82#define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) 83#define EV_SYN 0x00 84#define EV_KEY 0x01 85#define EV_REL 0x02 86#define EV_ABS 0x03 87#define EV_MSC 0x04 88#define EV_SW 0x05 89#define EV_LED 0x11 90#define EV_SND 0x12 91#define EV_REP 0x14 92#define EV_FF 0x15 93#define EV_PWR 0x16 94#define EV_FF_STATUS 0x17 95#define EV_MAX 0x1f 96#define EV_CNT (EV_MAX+1) 97#define SYN_REPORT 0 98#define SYN_CONFIG 1 99#define SYN_MT_REPORT 2 100#define SYN_DROPPED 3 101#define KEY_RESERVED 0 102#define KEY_ESC 1 103#define KEY_1 2 104#define KEY_2 3 105#define KEY_3 4 106#define KEY_4 5 107#define KEY_5 6 108#define KEY_6 7 109#define KEY_7 8 110#define KEY_8 9 111#define KEY_9 10 112#define KEY_0 11 113#define KEY_MINUS 12 114#define KEY_EQUAL 13 115#define KEY_BACKSPACE 14 116#define KEY_TAB 15 117#define KEY_Q 16 118#define KEY_W 17 119#define KEY_E 18 120#define KEY_R 19 121#define KEY_T 20 122#define KEY_Y 21 123#define KEY_U 22 124#define KEY_I 23 125#define KEY_O 24 126#define KEY_P 25 127#define KEY_LEFTBRACE 26 128#define KEY_RIGHTBRACE 27 129#define KEY_ENTER 28 130#define KEY_LEFTCTRL 29 131#define KEY_A 30 132#define KEY_S 31 133#define KEY_D 32 134#define KEY_F 33 135#define KEY_G 34 136#define KEY_H 35 137#define KEY_J 36 138#define KEY_K 37 139#define KEY_L 38 140#define KEY_SEMICOLON 39 141#define KEY_APOSTROPHE 40 142#define KEY_GRAVE 41 143#define KEY_LEFTSHIFT 42 144#define KEY_BACKSLASH 43 145#define KEY_Z 44 146#define KEY_X 45 147#define KEY_C 46 148#define KEY_V 47 149#define KEY_B 48 150#define KEY_N 49 151#define KEY_M 50 152#define KEY_COMMA 51 153#define KEY_DOT 52 154#define KEY_SLASH 53 155#define KEY_RIGHTSHIFT 54 156#define KEY_KPASTERISK 55 157#define KEY_LEFTALT 56 158#define KEY_SPACE 57 159#define KEY_CAPSLOCK 58 160#define KEY_F1 59 161#define KEY_F2 60 162#define KEY_F3 61 163#define KEY_F4 62 164#define KEY_F5 63 165#define KEY_F6 64 166#define KEY_F7 65 167#define KEY_F8 66 168#define KEY_F9 67 169#define KEY_F10 68 170#define KEY_NUMLOCK 69 171#define KEY_SCROLLLOCK 70 172#define KEY_KP7 71 173#define KEY_KP8 72 174#define KEY_KP9 73 175#define KEY_KPMINUS 74 176#define KEY_KP4 75 177#define KEY_KP5 76 178#define KEY_KP6 77 179#define KEY_KPPLUS 78 180#define KEY_KP1 79 181#define KEY_KP2 80 182#define KEY_KP3 81 183#define KEY_KP0 82 184#define KEY_KPDOT 83 185#define KEY_ZENKAKUHANKAKU 85 186#define KEY_102ND 86 187#define KEY_F11 87 188#define KEY_F12 88 189#define KEY_RO 89 190#define KEY_KATAKANA 90 191#define KEY_HIRAGANA 91 192#define KEY_HENKAN 92 193#define KEY_KATAKANAHIRAGANA 93 194#define KEY_MUHENKAN 94 195#define KEY_KPJPCOMMA 95 196#define KEY_KPENTER 96 197#define KEY_RIGHTCTRL 97 198#define KEY_KPSLASH 98 199#define KEY_SYSRQ 99 200#define KEY_RIGHTALT 100 201#define KEY_LINEFEED 101 202#define KEY_HOME 102 203#define KEY_UP 103 204#define KEY_PAGEUP 104 205#define KEY_LEFT 105 206#define KEY_RIGHT 106 207#define KEY_END 107 208#define KEY_DOWN 108 209#define KEY_PAGEDOWN 109 210#define KEY_INSERT 110 211#define KEY_DELETE 111 212#define KEY_MACRO 112 213#define KEY_MUTE 113 214#define KEY_VOLUMEDOWN 114 215#define KEY_VOLUMEUP 115 216#define KEY_POWER 116 217#define KEY_KPEQUAL 117 218#define KEY_KPPLUSMINUS 118 219#define KEY_PAUSE 119 220#define KEY_SCALE 120 221#define KEY_KPCOMMA 121 222#define KEY_HANGEUL 122 223#define KEY_HANGUEL KEY_HANGEUL 224#define KEY_HANJA 123 225#define KEY_YEN 124 226#define KEY_LEFTMETA 125 227#define KEY_RIGHTMETA 126 228#define KEY_COMPOSE 127 229#define KEY_STOP 128 230#define KEY_AGAIN 129 231#define KEY_PROPS 130 232#define KEY_UNDO 131 233#define KEY_FRONT 132 234#define KEY_COPY 133 235#define KEY_OPEN 134 236#define KEY_PASTE 135 237#define KEY_FIND 136 238#define KEY_CUT 137 239#define KEY_HELP 138 240#define KEY_MENU 139 241#define KEY_CALC 140 242#define KEY_SETUP 141 243#define KEY_SLEEP 142 244#define KEY_WAKEUP 143 245#define KEY_FILE 144 246#define KEY_SENDFILE 145 247#define KEY_DELETEFILE 146 248#define KEY_XFER 147 249#define KEY_PROG1 148 250#define KEY_PROG2 149 251#define KEY_WWW 150 252#define KEY_MSDOS 151 253#define KEY_COFFEE 152 254#define KEY_SCREENLOCK KEY_COFFEE 255#define KEY_DIRECTION 153 256#define KEY_CYCLEWINDOWS 154 257#define KEY_MAIL 155 258#define KEY_BOOKMARKS 156 259#define KEY_COMPUTER 157 260#define KEY_BACK 158 261#define KEY_FORWARD 159 262#define KEY_CLOSECD 160 263#define KEY_EJECTCD 161 264#define KEY_EJECTCLOSECD 162 265#define KEY_NEXTSONG 163 266#define KEY_PLAYPAUSE 164 267#define KEY_PREVIOUSSONG 165 268#define KEY_STOPCD 166 269#define KEY_RECORD 167 270#define KEY_REWIND 168 271#define KEY_PHONE 169 272#define KEY_ISO 170 273#define KEY_CONFIG 171 274#define KEY_HOMEPAGE 172 275#define KEY_REFRESH 173 276#define KEY_EXIT 174 277#define KEY_MOVE 175 278#define KEY_EDIT 176 279#define KEY_SCROLLUP 177 280#define KEY_SCROLLDOWN 178 281#define KEY_KPLEFTPAREN 179 282#define KEY_KPRIGHTPAREN 180 283#define KEY_NEW 181 284#define KEY_REDO 182 285#define KEY_F13 183 286#define KEY_F14 184 287#define KEY_F15 185 288#define KEY_F16 186 289#define KEY_F17 187 290#define KEY_F18 188 291#define KEY_F19 189 292#define KEY_F20 190 293#define KEY_F21 191 294#define KEY_F22 192 295#define KEY_F23 193 296#define KEY_F24 194 297#define KEY_PLAYCD 200 298#define KEY_PAUSECD 201 299#define KEY_PROG3 202 300#define KEY_PROG4 203 301#define KEY_DASHBOARD 204 302#define KEY_SUSPEND 205 303#define KEY_CLOSE 206 304#define KEY_PLAY 207 305#define KEY_FASTFORWARD 208 306#define KEY_BASSBOOST 209 307#define KEY_PRINT 210 308#define KEY_HP 211 309#define KEY_CAMERA 212 310#define KEY_SOUND 213 311#define KEY_QUESTION 214 312#define KEY_EMAIL 215 313#define KEY_CHAT 216 314#define KEY_SEARCH 217 315#define KEY_CONNECT 218 316#define KEY_FINANCE 219 317#define KEY_SPORT 220 318#define KEY_SHOP 221 319#define KEY_ALTERASE 222 320#define KEY_CANCEL 223 321#define KEY_BRIGHTNESSDOWN 224 322#define KEY_BRIGHTNESSUP 225 323#define KEY_MEDIA 226 324#define KEY_SWITCHVIDEOMODE 227 325#define KEY_KBDILLUMTOGGLE 228 326#define KEY_KBDILLUMDOWN 229 327#define KEY_KBDILLUMUP 230 328#define KEY_SEND 231 329#define KEY_REPLY 232 330#define KEY_FORWARDMAIL 233 331#define KEY_SAVE 234 332#define KEY_DOCUMENTS 235 333#define KEY_BATTERY 236 334#define KEY_BLUETOOTH 237 335#define KEY_WLAN 238 336#define KEY_UWB 239 337#define KEY_UNKNOWN 240 338#define KEY_VIDEO_NEXT 241 339#define KEY_VIDEO_PREV 242 340#define KEY_BRIGHTNESS_CYCLE 243 341#define KEY_BRIGHTNESS_ZERO 244 342#define KEY_DISPLAY_OFF 245 343#define KEY_WIMAX 246 344#define KEY_RFKILL 247 345#define BTN_MISC 0x100 346#define BTN_0 0x100 347#define BTN_1 0x101 348#define BTN_2 0x102 349#define BTN_3 0x103 350#define BTN_4 0x104 351#define BTN_5 0x105 352#define BTN_6 0x106 353#define BTN_7 0x107 354#define BTN_8 0x108 355#define BTN_9 0x109 356#define BTN_MOUSE 0x110 357#define BTN_LEFT 0x110 358#define BTN_RIGHT 0x111 359#define BTN_MIDDLE 0x112 360#define BTN_SIDE 0x113 361#define BTN_EXTRA 0x114 362#define BTN_FORWARD 0x115 363#define BTN_BACK 0x116 364#define BTN_TASK 0x117 365#define BTN_JOYSTICK 0x120 366#define BTN_TRIGGER 0x120 367#define BTN_THUMB 0x121 368#define BTN_THUMB2 0x122 369#define BTN_TOP 0x123 370#define BTN_TOP2 0x124 371#define BTN_PINKIE 0x125 372#define BTN_BASE 0x126 373#define BTN_BASE2 0x127 374#define BTN_BASE3 0x128 375#define BTN_BASE4 0x129 376#define BTN_BASE5 0x12a 377#define BTN_BASE6 0x12b 378#define BTN_DEAD 0x12f 379#define BTN_GAMEPAD 0x130 380#define BTN_A 0x130 381#define BTN_B 0x131 382#define BTN_C 0x132 383#define BTN_X 0x133 384#define BTN_Y 0x134 385#define BTN_Z 0x135 386#define BTN_TL 0x136 387#define BTN_TR 0x137 388#define BTN_TL2 0x138 389#define BTN_TR2 0x139 390#define BTN_SELECT 0x13a 391#define BTN_START 0x13b 392#define BTN_MODE 0x13c 393#define BTN_THUMBL 0x13d 394#define BTN_THUMBR 0x13e 395#define BTN_DIGI 0x140 396#define BTN_TOOL_PEN 0x140 397#define BTN_TOOL_RUBBER 0x141 398#define BTN_TOOL_BRUSH 0x142 399#define BTN_TOOL_PENCIL 0x143 400#define BTN_TOOL_AIRBRUSH 0x144 401#define BTN_TOOL_FINGER 0x145 402#define BTN_TOOL_MOUSE 0x146 403#define BTN_TOOL_LENS 0x147 404#define BTN_TOUCH 0x14a 405#define BTN_STYLUS 0x14b 406#define BTN_STYLUS2 0x14c 407#define BTN_TOOL_DOUBLETAP 0x14d 408#define BTN_TOOL_TRIPLETAP 0x14e 409#define BTN_TOOL_QUADTAP 0x14f 410#define BTN_WHEEL 0x150 411#define BTN_GEAR_DOWN 0x150 412#define BTN_GEAR_UP 0x151 413#define KEY_OK 0x160 414#define KEY_SELECT 0x161 415#define KEY_GOTO 0x162 416#define KEY_CLEAR 0x163 417#define KEY_POWER2 0x164 418#define KEY_OPTION 0x165 419#define KEY_INFO 0x166 420#define KEY_TIME 0x167 421#define KEY_VENDOR 0x168 422#define KEY_ARCHIVE 0x169 423#define KEY_PROGRAM 0x16a 424#define KEY_CHANNEL 0x16b 425#define KEY_FAVORITES 0x16c 426#define KEY_EPG 0x16d 427#define KEY_PVR 0x16e 428#define KEY_MHP 0x16f 429#define KEY_LANGUAGE 0x170 430#define KEY_TITLE 0x171 431#define KEY_SUBTITLE 0x172 432#define KEY_ANGLE 0x173 433#define KEY_ZOOM 0x174 434#define KEY_MODE 0x175 435#define KEY_KEYBOARD 0x176 436#define KEY_SCREEN 0x177 437#define KEY_PC 0x178 438#define KEY_TV 0x179 439#define KEY_TV2 0x17a 440#define KEY_VCR 0x17b 441#define KEY_VCR2 0x17c 442#define KEY_SAT 0x17d 443#define KEY_SAT2 0x17e 444#define KEY_CD 0x17f 445#define KEY_TAPE 0x180 446#define KEY_RADIO 0x181 447#define KEY_TUNER 0x182 448#define KEY_PLAYER 0x183 449#define KEY_TEXT 0x184 450#define KEY_DVD 0x185 451#define KEY_AUX 0x186 452#define KEY_MP3 0x187 453#define KEY_AUDIO 0x188 454#define KEY_VIDEO 0x189 455#define KEY_DIRECTORY 0x18a 456#define KEY_LIST 0x18b 457#define KEY_MEMO 0x18c 458#define KEY_CALENDAR 0x18d 459#define KEY_RED 0x18e 460#define KEY_GREEN 0x18f 461#define KEY_YELLOW 0x190 462#define KEY_BLUE 0x191 463#define KEY_CHANNELUP 0x192 464#define KEY_CHANNELDOWN 0x193 465#define KEY_FIRST 0x194 466#define KEY_LAST 0x195 467#define KEY_AB 0x196 468#define KEY_NEXT 0x197 469#define KEY_RESTART 0x198 470#define KEY_SLOW 0x199 471#define KEY_SHUFFLE 0x19a 472#define KEY_BREAK 0x19b 473#define KEY_PREVIOUS 0x19c 474#define KEY_DIGITS 0x19d 475#define KEY_TEEN 0x19e 476#define KEY_TWEN 0x19f 477#define KEY_VIDEOPHONE 0x1a0 478#define KEY_GAMES 0x1a1 479#define KEY_ZOOMIN 0x1a2 480#define KEY_ZOOMOUT 0x1a3 481#define KEY_ZOOMRESET 0x1a4 482#define KEY_WORDPROCESSOR 0x1a5 483#define KEY_EDITOR 0x1a6 484#define KEY_SPREADSHEET 0x1a7 485#define KEY_GRAPHICSEDITOR 0x1a8 486#define KEY_PRESENTATION 0x1a9 487#define KEY_DATABASE 0x1aa 488#define KEY_NEWS 0x1ab 489#define KEY_VOICEMAIL 0x1ac 490#define KEY_ADDRESSBOOK 0x1ad 491#define KEY_MESSENGER 0x1ae 492#define KEY_DISPLAYTOGGLE 0x1af 493#define KEY_SPELLCHECK 0x1b0 494#define KEY_LOGOFF 0x1b1 495#define KEY_DOLLAR 0x1b2 496#define KEY_EURO 0x1b3 497#define KEY_FRAMEBACK 0x1b4 498#define KEY_FRAMEFORWARD 0x1b5 499#define KEY_CONTEXT_MENU 0x1b6 500#define KEY_MEDIA_REPEAT 0x1b7 501#define KEY_10CHANNELSUP 0x1b8 502#define KEY_10CHANNELSDOWN 0x1b9 503#define KEY_IMAGES 0x1ba 504#define KEY_DEL_EOL 0x1c0 505#define KEY_DEL_EOS 0x1c1 506#define KEY_INS_LINE 0x1c2 507#define KEY_DEL_LINE 0x1c3 508#define KEY_FN 0x1d0 509#define KEY_FN_ESC 0x1d1 510#define KEY_FN_F1 0x1d2 511#define KEY_FN_F2 0x1d3 512#define KEY_FN_F3 0x1d4 513#define KEY_FN_F4 0x1d5 514#define KEY_FN_F5 0x1d6 515#define KEY_FN_F6 0x1d7 516#define KEY_FN_F7 0x1d8 517#define KEY_FN_F8 0x1d9 518#define KEY_FN_F9 0x1da 519#define KEY_FN_F10 0x1db 520#define KEY_FN_F11 0x1dc 521#define KEY_FN_F12 0x1dd 522#define KEY_FN_1 0x1de 523#define KEY_FN_2 0x1df 524#define KEY_FN_D 0x1e0 525#define KEY_FN_E 0x1e1 526#define KEY_FN_F 0x1e2 527#define KEY_FN_S 0x1e3 528#define KEY_FN_B 0x1e4 529#define KEY_BRL_DOT1 0x1f1 530#define KEY_BRL_DOT2 0x1f2 531#define KEY_BRL_DOT3 0x1f3 532#define KEY_BRL_DOT4 0x1f4 533#define KEY_BRL_DOT5 0x1f5 534#define KEY_BRL_DOT6 0x1f6 535#define KEY_BRL_DOT7 0x1f7 536#define KEY_BRL_DOT8 0x1f8 537#define KEY_BRL_DOT9 0x1f9 538#define KEY_BRL_DOT10 0x1fa 539#define KEY_NUMERIC_0 0x200 540#define KEY_NUMERIC_1 0x201 541#define KEY_NUMERIC_2 0x202 542#define KEY_NUMERIC_3 0x203 543#define KEY_NUMERIC_4 0x204 544#define KEY_NUMERIC_5 0x205 545#define KEY_NUMERIC_6 0x206 546#define KEY_NUMERIC_7 0x207 547#define KEY_NUMERIC_8 0x208 548#define KEY_NUMERIC_9 0x209 549#define KEY_NUMERIC_STAR 0x20a 550#define KEY_NUMERIC_POUND 0x20b 551#define KEY_CAMERA_FOCUS 0x210 552#define KEY_WPS_BUTTON 0x211 553#define KEY_TOUCHPAD_TOGGLE 0x212 554#define KEY_TOUCHPAD_ON 0x213 555#define KEY_TOUCHPAD_OFF 0x214 556#define KEY_CAMERA_ZOOMIN 0x215 557#define KEY_CAMERA_ZOOMOUT 0x216 558#define KEY_CAMERA_UP 0x217 559#define KEY_CAMERA_DOWN 0x218 560#define KEY_CAMERA_LEFT 0x219 561#define KEY_CAMERA_RIGHT 0x21a 562#define BTN_TRIGGER_HAPPY 0x2c0 563#define BTN_TRIGGER_HAPPY1 0x2c0 564#define BTN_TRIGGER_HAPPY2 0x2c1 565#define BTN_TRIGGER_HAPPY3 0x2c2 566#define BTN_TRIGGER_HAPPY4 0x2c3 567#define BTN_TRIGGER_HAPPY5 0x2c4 568#define BTN_TRIGGER_HAPPY6 0x2c5 569#define BTN_TRIGGER_HAPPY7 0x2c6 570#define BTN_TRIGGER_HAPPY8 0x2c7 571#define BTN_TRIGGER_HAPPY9 0x2c8 572#define BTN_TRIGGER_HAPPY10 0x2c9 573#define BTN_TRIGGER_HAPPY11 0x2ca 574#define BTN_TRIGGER_HAPPY12 0x2cb 575#define BTN_TRIGGER_HAPPY13 0x2cc 576#define BTN_TRIGGER_HAPPY14 0x2cd 577#define BTN_TRIGGER_HAPPY15 0x2ce 578#define BTN_TRIGGER_HAPPY16 0x2cf 579#define BTN_TRIGGER_HAPPY17 0x2d0 580#define BTN_TRIGGER_HAPPY18 0x2d1 581#define BTN_TRIGGER_HAPPY19 0x2d2 582#define BTN_TRIGGER_HAPPY20 0x2d3 583#define BTN_TRIGGER_HAPPY21 0x2d4 584#define BTN_TRIGGER_HAPPY22 0x2d5 585#define BTN_TRIGGER_HAPPY23 0x2d6 586#define BTN_TRIGGER_HAPPY24 0x2d7 587#define BTN_TRIGGER_HAPPY25 0x2d8 588#define BTN_TRIGGER_HAPPY26 0x2d9 589#define BTN_TRIGGER_HAPPY27 0x2da 590#define BTN_TRIGGER_HAPPY28 0x2db 591#define BTN_TRIGGER_HAPPY29 0x2dc 592#define BTN_TRIGGER_HAPPY30 0x2dd 593#define BTN_TRIGGER_HAPPY31 0x2de 594#define BTN_TRIGGER_HAPPY32 0x2df 595#define BTN_TRIGGER_HAPPY33 0x2e0 596#define BTN_TRIGGER_HAPPY34 0x2e1 597#define BTN_TRIGGER_HAPPY35 0x2e2 598#define BTN_TRIGGER_HAPPY36 0x2e3 599#define BTN_TRIGGER_HAPPY37 0x2e4 600#define BTN_TRIGGER_HAPPY38 0x2e5 601#define BTN_TRIGGER_HAPPY39 0x2e6 602#define BTN_TRIGGER_HAPPY40 0x2e7 603#define KEY_MIN_INTERESTING KEY_MUTE 604#define KEY_MAX 0x2ff 605#define KEY_CNT (KEY_MAX+1) 606#define REL_X 0x00 607#define REL_Y 0x01 608#define REL_Z 0x02 609#define REL_RX 0x03 610#define REL_RY 0x04 611#define REL_RZ 0x05 612#define REL_HWHEEL 0x06 613#define REL_DIAL 0x07 614#define REL_WHEEL 0x08 615#define REL_MISC 0x09 616#define REL_MAX 0x0f 617#define REL_CNT (REL_MAX+1) 618#define ABS_X 0x00 619#define ABS_Y 0x01 620#define ABS_Z 0x02 621#define ABS_RX 0x03 622#define ABS_RY 0x04 623#define ABS_RZ 0x05 624#define ABS_THROTTLE 0x06 625#define ABS_RUDDER 0x07 626#define ABS_WHEEL 0x08 627#define ABS_GAS 0x09 628#define ABS_BRAKE 0x0a 629#define ABS_HAT0X 0x10 630#define ABS_HAT0Y 0x11 631#define ABS_HAT1X 0x12 632#define ABS_HAT1Y 0x13 633#define ABS_HAT2X 0x14 634#define ABS_HAT2Y 0x15 635#define ABS_HAT3X 0x16 636#define ABS_HAT3Y 0x17 637#define ABS_PRESSURE 0x18 638#define ABS_DISTANCE 0x19 639#define ABS_TILT_X 0x1a 640#define ABS_TILT_Y 0x1b 641#define ABS_TOOL_WIDTH 0x1c 642#define ABS_VOLUME 0x20 643#define ABS_MISC 0x28 644#define ABS_MT_SLOT 0x2f 645#define ABS_MT_TOUCH_MAJOR 0x30 646#define ABS_MT_TOUCH_MINOR 0x31 647#define ABS_MT_WIDTH_MAJOR 0x32 648#define ABS_MT_WIDTH_MINOR 0x33 649#define ABS_MT_ORIENTATION 0x34 650#define ABS_MT_POSITION_X 0x35 651#define ABS_MT_POSITION_Y 0x36 652#define ABS_MT_TOOL_TYPE 0x37 653#define ABS_MT_BLOB_ID 0x38 654#define ABS_MT_TRACKING_ID 0x39 655#define ABS_MT_PRESSURE 0x3a 656#define ABS_MT_DISTANCE 0x3b 657#define ABS_MAX 0x3f 658#define ABS_CNT (ABS_MAX+1) 659#define SW_LID 0x00 660#define SW_TABLET_MODE 0x01 661#define SW_HEADPHONE_INSERT 0x02 662#define SW_RFKILL_ALL 0x03 663#define SW_RADIO SW_RFKILL_ALL 664#define SW_MICROPHONE_INSERT 0x04 665#define SW_DOCK 0x05 666#define SW_LINEOUT_INSERT 0x06 667#define SW_JACK_PHYSICAL_INSERT 0x07 668#define SW_VIDEOOUT_INSERT 0x08 669#define SW_CAMERA_LENS_COVER 0x09 670#define SW_KEYPAD_SLIDE 0x0a 671#define SW_FRONT_PROXIMITY 0x0b 672#define SW_ROTATE_LOCK 0x0c 673#define SW_MAX 0x0f 674#define SW_CNT (SW_MAX+1) 675#define MSC_SERIAL 0x00 676#define MSC_PULSELED 0x01 677#define MSC_GESTURE 0x02 678#define MSC_RAW 0x03 679#define MSC_SCAN 0x04 680#define MSC_MAX 0x07 681#define MSC_CNT (MSC_MAX+1) 682#define LED_NUML 0x00 683#define LED_CAPSL 0x01 684#define LED_SCROLLL 0x02 685#define LED_COMPOSE 0x03 686#define LED_KANA 0x04 687#define LED_SLEEP 0x05 688#define LED_SUSPEND 0x06 689#define LED_MUTE 0x07 690#define LED_MISC 0x08 691#define LED_MAIL 0x09 692#define LED_CHARGING 0x0a 693#define LED_MAX 0x0f 694#define LED_CNT (LED_MAX+1) 695#define REP_DELAY 0x00 696#define REP_PERIOD 0x01 697#define REP_MAX 0x01 698#define REP_CNT (REP_MAX+1) 699#define SND_CLICK 0x00 700#define SND_BELL 0x01 701#define SND_TONE 0x02 702#define SND_MAX 0x07 703#define SND_CNT (SND_MAX+1) 704#define ID_BUS 0 705#define ID_VENDOR 1 706#define ID_PRODUCT 2 707#define ID_VERSION 3 708#define BUS_PCI 0x01 709#define BUS_ISAPNP 0x02 710#define BUS_USB 0x03 711#define BUS_HIL 0x04 712#define BUS_BLUETOOTH 0x05 713#define BUS_VIRTUAL 0x06 714#define BUS_ISA 0x10 715#define BUS_I8042 0x11 716#define BUS_XTKBD 0x12 717#define BUS_RS232 0x13 718#define BUS_GAMEPORT 0x14 719#define BUS_PARPORT 0x15 720#define BUS_AMIGA 0x16 721#define BUS_ADB 0x17 722#define BUS_I2C 0x18 723#define BUS_HOST 0x19 724#define BUS_GSC 0x1A 725#define BUS_ATARI 0x1B 726#define BUS_SPI 0x1C 727#define MT_TOOL_FINGER 0 728#define MT_TOOL_PEN 1 729#define MT_TOOL_MAX 1 730#define FF_STATUS_STOPPED 0x00 731#define FF_STATUS_PLAYING 0x01 732#define FF_STATUS_MAX 0x01 733struct ff_replay { 734 __u16 length; 735 __u16 delay; 736}; 737struct ff_trigger { 738 __u16 button; 739 __u16 interval; 740}; 741struct ff_envelope { 742 __u16 attack_length; 743 __u16 attack_level; 744 __u16 fade_length; 745 __u16 fade_level; 746}; 747struct ff_constant_effect { 748 __s16 level; 749 struct ff_envelope envelope; 750}; 751struct ff_ramp_effect { 752 __s16 start_level; 753 __s16 end_level; 754 struct ff_envelope envelope; 755}; 756struct ff_condition_effect { 757 __u16 right_saturation; 758 __u16 left_saturation; 759 __s16 right_coeff; 760 __s16 left_coeff; 761 __u16 deadband; 762 __s16 center; 763}; 764struct ff_periodic_effect { 765 __u16 waveform; 766 __u16 period; 767 __s16 magnitude; 768 __s16 offset; 769 __u16 phase; 770 struct ff_envelope envelope; 771 __u32 custom_len; 772 __s16 *custom_data; 773}; 774struct ff_rumble_effect { 775 __u16 strong_magnitude; 776 __u16 weak_magnitude; 777}; 778struct ff_effect { 779 __u16 type; 780 __s16 id; 781 __u16 direction; 782 struct ff_trigger trigger; 783 struct ff_replay replay; 784 union { 785 struct ff_constant_effect constant; 786 struct ff_ramp_effect ramp; 787 struct ff_periodic_effect periodic; 788 struct ff_condition_effect condition[2]; 789 struct ff_rumble_effect rumble; 790 } u; 791}; 792#define FF_RUMBLE 0x50 793#define FF_PERIODIC 0x51 794#define FF_CONSTANT 0x52 795#define FF_SPRING 0x53 796#define FF_FRICTION 0x54 797#define FF_DAMPER 0x55 798#define FF_INERTIA 0x56 799#define FF_RAMP 0x57 800#define FF_EFFECT_MIN FF_RUMBLE 801#define FF_EFFECT_MAX FF_RAMP 802#define FF_SQUARE 0x58 803#define FF_TRIANGLE 0x59 804#define FF_SINE 0x5a 805#define FF_SAW_UP 0x5b 806#define FF_SAW_DOWN 0x5c 807#define FF_CUSTOM 0x5d 808#define FF_WAVEFORM_MIN FF_SQUARE 809#define FF_WAVEFORM_MAX FF_CUSTOM 810#define FF_GAIN 0x60 811#define FF_AUTOCENTER 0x61 812#define FF_MAX 0x7f 813#define FF_CNT (FF_MAX+1) 814#endif 815 816