1305706Sgonzo/*- 2305706Sgonzo * Copyright (c) 2016 Oleksandr Tymoshenko <gonzo@FreeBSD.org> 3324768Swulf * Copyright (c) 2015-2016 Vladimir Kondratyev <wulf@FreeBSD.org> 4305706Sgonzo * All rights reserved. 5305706Sgonzo * 6305706Sgonzo * Redistribution and use in source and binary forms, with or without 7305706Sgonzo * modification, are permitted provided that the following conditions 8305706Sgonzo * are met: 9305706Sgonzo * 1. Redistributions of source code must retain the above copyright 10305706Sgonzo * notice, this list of conditions and the following disclaimer. 11305706Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 12305706Sgonzo * notice, this list of conditions and the following disclaimer in the 13305706Sgonzo * documentation and/or other materials provided with the distribution. 14305706Sgonzo * 15305706Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16305706Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17305706Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18305706Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19305706Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20305706Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21305706Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22305706Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23305706Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24305706Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25305706Sgonzo * SUCH DAMAGE. 26305706Sgonzo * 27305706Sgonzo * $FreeBSD: stable/11/sys/dev/evdev/input-event-codes.h 362207 2020-06-15 22:35:39Z wulf $ 28305706Sgonzo */ 29305706Sgonzo 30305706Sgonzo#ifndef _EVDEV_INPUT_EVENT_CODES_H 31305706Sgonzo#define _EVDEV_INPUT_EVENT_CODES_H 32305706Sgonzo 33305706Sgonzo/* 34305706Sgonzo * Device properties and quirks 35305706Sgonzo */ 36305706Sgonzo 37305706Sgonzo#define INPUT_PROP_POINTER 0x00 /* needs a pointer */ 38305706Sgonzo#define INPUT_PROP_DIRECT 0x01 /* direct input devices */ 39305706Sgonzo#define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */ 40305706Sgonzo#define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */ 41305706Sgonzo#define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ 42305706Sgonzo#define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */ 43305706Sgonzo#define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */ 44305706Sgonzo 45305706Sgonzo#define INPUT_PROP_MAX 0x1f 46305706Sgonzo#define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) 47305706Sgonzo 48305706Sgonzo/* 49305706Sgonzo * Event types 50305706Sgonzo */ 51305706Sgonzo 52305706Sgonzo#define EV_SYN 0x00 53305706Sgonzo#define EV_KEY 0x01 54305706Sgonzo#define EV_REL 0x02 55305706Sgonzo#define EV_ABS 0x03 56305706Sgonzo#define EV_MSC 0x04 57305706Sgonzo#define EV_SW 0x05 58305706Sgonzo#define EV_LED 0x11 59305706Sgonzo#define EV_SND 0x12 60305706Sgonzo#define EV_REP 0x14 61305706Sgonzo#define EV_FF 0x15 62305706Sgonzo#define EV_PWR 0x16 63305706Sgonzo#define EV_FF_STATUS 0x17 64305706Sgonzo#define EV_MAX 0x1f 65305706Sgonzo#define EV_CNT (EV_MAX+1) 66305706Sgonzo 67305706Sgonzo/* 68305706Sgonzo * Synchronization events. 69305706Sgonzo */ 70305706Sgonzo 71305706Sgonzo#define SYN_REPORT 0 72305706Sgonzo#define SYN_CONFIG 1 73305706Sgonzo#define SYN_MT_REPORT 2 74305706Sgonzo#define SYN_DROPPED 3 75305706Sgonzo#define SYN_MAX 0xf 76305706Sgonzo#define SYN_CNT (SYN_MAX+1) 77305706Sgonzo 78305706Sgonzo/* 79305706Sgonzo * Keys and buttons 80305706Sgonzo */ 81305706Sgonzo 82305706Sgonzo/* 83305706Sgonzo * Abbreviations in the comments: 84305706Sgonzo * AC - Application Control 85305706Sgonzo * AL - Application Launch Button 86305706Sgonzo * SC - System Control 87305706Sgonzo */ 88305706Sgonzo 89305706Sgonzo#define KEY_RESERVED 0 90305706Sgonzo#define KEY_ESC 1 91305706Sgonzo#define KEY_1 2 92305706Sgonzo#define KEY_2 3 93305706Sgonzo#define KEY_3 4 94305706Sgonzo#define KEY_4 5 95305706Sgonzo#define KEY_5 6 96305706Sgonzo#define KEY_6 7 97305706Sgonzo#define KEY_7 8 98305706Sgonzo#define KEY_8 9 99305706Sgonzo#define KEY_9 10 100305706Sgonzo#define KEY_0 11 101305706Sgonzo#define KEY_MINUS 12 102305706Sgonzo#define KEY_EQUAL 13 103305706Sgonzo#define KEY_BACKSPACE 14 104305706Sgonzo#define KEY_TAB 15 105305706Sgonzo#define KEY_Q 16 106305706Sgonzo#define KEY_W 17 107305706Sgonzo#define KEY_E 18 108305706Sgonzo#define KEY_R 19 109305706Sgonzo#define KEY_T 20 110305706Sgonzo#define KEY_Y 21 111305706Sgonzo#define KEY_U 22 112305706Sgonzo#define KEY_I 23 113305706Sgonzo#define KEY_O 24 114305706Sgonzo#define KEY_P 25 115305706Sgonzo#define KEY_LEFTBRACE 26 116305706Sgonzo#define KEY_RIGHTBRACE 27 117305706Sgonzo#define KEY_ENTER 28 118305706Sgonzo#define KEY_LEFTCTRL 29 119305706Sgonzo#define KEY_A 30 120305706Sgonzo#define KEY_S 31 121305706Sgonzo#define KEY_D 32 122305706Sgonzo#define KEY_F 33 123305706Sgonzo#define KEY_G 34 124305706Sgonzo#define KEY_H 35 125305706Sgonzo#define KEY_J 36 126305706Sgonzo#define KEY_K 37 127305706Sgonzo#define KEY_L 38 128305706Sgonzo#define KEY_SEMICOLON 39 129305706Sgonzo#define KEY_APOSTROPHE 40 130305706Sgonzo#define KEY_GRAVE 41 131305706Sgonzo#define KEY_LEFTSHIFT 42 132305706Sgonzo#define KEY_BACKSLASH 43 133305706Sgonzo#define KEY_Z 44 134305706Sgonzo#define KEY_X 45 135305706Sgonzo#define KEY_C 46 136305706Sgonzo#define KEY_V 47 137305706Sgonzo#define KEY_B 48 138305706Sgonzo#define KEY_N 49 139305706Sgonzo#define KEY_M 50 140305706Sgonzo#define KEY_COMMA 51 141305706Sgonzo#define KEY_DOT 52 142305706Sgonzo#define KEY_SLASH 53 143305706Sgonzo#define KEY_RIGHTSHIFT 54 144305706Sgonzo#define KEY_KPASTERISK 55 145305706Sgonzo#define KEY_LEFTALT 56 146305706Sgonzo#define KEY_SPACE 57 147305706Sgonzo#define KEY_CAPSLOCK 58 148305706Sgonzo#define KEY_F1 59 149305706Sgonzo#define KEY_F2 60 150305706Sgonzo#define KEY_F3 61 151305706Sgonzo#define KEY_F4 62 152305706Sgonzo#define KEY_F5 63 153305706Sgonzo#define KEY_F6 64 154305706Sgonzo#define KEY_F7 65 155305706Sgonzo#define KEY_F8 66 156305706Sgonzo#define KEY_F9 67 157305706Sgonzo#define KEY_F10 68 158305706Sgonzo#define KEY_NUMLOCK 69 159305706Sgonzo#define KEY_SCROLLLOCK 70 160305706Sgonzo#define KEY_KP7 71 161305706Sgonzo#define KEY_KP8 72 162305706Sgonzo#define KEY_KP9 73 163305706Sgonzo#define KEY_KPMINUS 74 164305706Sgonzo#define KEY_KP4 75 165305706Sgonzo#define KEY_KP5 76 166305706Sgonzo#define KEY_KP6 77 167305706Sgonzo#define KEY_KPPLUS 78 168305706Sgonzo#define KEY_KP1 79 169305706Sgonzo#define KEY_KP2 80 170305706Sgonzo#define KEY_KP3 81 171305706Sgonzo#define KEY_KP0 82 172305706Sgonzo#define KEY_KPDOT 83 173305706Sgonzo 174305706Sgonzo#define KEY_ZENKAKUHANKAKU 85 175305706Sgonzo#define KEY_102ND 86 176305706Sgonzo#define KEY_F11 87 177305706Sgonzo#define KEY_F12 88 178305706Sgonzo#define KEY_RO 89 179305706Sgonzo#define KEY_KATAKANA 90 180305706Sgonzo#define KEY_HIRAGANA 91 181305706Sgonzo#define KEY_HENKAN 92 182305706Sgonzo#define KEY_KATAKANAHIRAGANA 93 183305706Sgonzo#define KEY_MUHENKAN 94 184305706Sgonzo#define KEY_KPJPCOMMA 95 185305706Sgonzo#define KEY_KPENTER 96 186305706Sgonzo#define KEY_RIGHTCTRL 97 187305706Sgonzo#define KEY_KPSLASH 98 188305706Sgonzo#define KEY_SYSRQ 99 189305706Sgonzo#define KEY_RIGHTALT 100 190305706Sgonzo#define KEY_LINEFEED 101 191305706Sgonzo#define KEY_HOME 102 192305706Sgonzo#define KEY_UP 103 193305706Sgonzo#define KEY_PAGEUP 104 194305706Sgonzo#define KEY_LEFT 105 195305706Sgonzo#define KEY_RIGHT 106 196305706Sgonzo#define KEY_END 107 197305706Sgonzo#define KEY_DOWN 108 198305706Sgonzo#define KEY_PAGEDOWN 109 199305706Sgonzo#define KEY_INSERT 110 200305706Sgonzo#define KEY_DELETE 111 201305706Sgonzo#define KEY_MACRO 112 202305706Sgonzo#define KEY_MUTE 113 203305706Sgonzo#define KEY_VOLUMEDOWN 114 204305706Sgonzo#define KEY_VOLUMEUP 115 205305706Sgonzo#define KEY_POWER 116 /* SC System Power Down */ 206305706Sgonzo#define KEY_KPEQUAL 117 207305706Sgonzo#define KEY_KPPLUSMINUS 118 208305706Sgonzo#define KEY_PAUSE 119 209305706Sgonzo#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */ 210305706Sgonzo 211305706Sgonzo#define KEY_KPCOMMA 121 212305706Sgonzo#define KEY_HANGEUL 122 213305706Sgonzo#define KEY_HANGUEL KEY_HANGEUL 214305706Sgonzo#define KEY_HANJA 123 215305706Sgonzo#define KEY_YEN 124 216305706Sgonzo#define KEY_LEFTMETA 125 217305706Sgonzo#define KEY_RIGHTMETA 126 218305706Sgonzo#define KEY_COMPOSE 127 219305706Sgonzo 220305706Sgonzo#define KEY_STOP 128 /* AC Stop */ 221305706Sgonzo#define KEY_AGAIN 129 222305706Sgonzo#define KEY_PROPS 130 /* AC Properties */ 223305706Sgonzo#define KEY_UNDO 131 /* AC Undo */ 224305706Sgonzo#define KEY_FRONT 132 225305706Sgonzo#define KEY_COPY 133 /* AC Copy */ 226305706Sgonzo#define KEY_OPEN 134 /* AC Open */ 227305706Sgonzo#define KEY_PASTE 135 /* AC Paste */ 228305706Sgonzo#define KEY_FIND 136 /* AC Search */ 229305706Sgonzo#define KEY_CUT 137 /* AC Cut */ 230305706Sgonzo#define KEY_HELP 138 /* AL Integrated Help Center */ 231305706Sgonzo#define KEY_MENU 139 /* Menu (show menu) */ 232305706Sgonzo#define KEY_CALC 140 /* AL Calculator */ 233305706Sgonzo#define KEY_SETUP 141 234305706Sgonzo#define KEY_SLEEP 142 /* SC System Sleep */ 235305706Sgonzo#define KEY_WAKEUP 143 /* System Wake Up */ 236305706Sgonzo#define KEY_FILE 144 /* AL Local Machine Browser */ 237305706Sgonzo#define KEY_SENDFILE 145 238305706Sgonzo#define KEY_DELETEFILE 146 239305706Sgonzo#define KEY_XFER 147 240305706Sgonzo#define KEY_PROG1 148 241305706Sgonzo#define KEY_PROG2 149 242305706Sgonzo#define KEY_WWW 150 /* AL Internet Browser */ 243305706Sgonzo#define KEY_MSDOS 151 244305706Sgonzo#define KEY_COFFEE 152 /* AL Terminal Lock/Screensaver */ 245305706Sgonzo#define KEY_SCREENLOCK KEY_COFFEE 246305706Sgonzo#define KEY_ROTATE_DISPLAY 153 /* Display orientation for e.g. tablets */ 247305706Sgonzo#define KEY_DIRECTION KEY_ROTATE_DISPLAY 248305706Sgonzo#define KEY_CYCLEWINDOWS 154 249305706Sgonzo#define KEY_MAIL 155 250305706Sgonzo#define KEY_BOOKMARKS 156 /* AC Bookmarks */ 251305706Sgonzo#define KEY_COMPUTER 157 252305706Sgonzo#define KEY_BACK 158 /* AC Back */ 253305706Sgonzo#define KEY_FORWARD 159 /* AC Forward */ 254305706Sgonzo#define KEY_CLOSECD 160 255305706Sgonzo#define KEY_EJECTCD 161 256305706Sgonzo#define KEY_EJECTCLOSECD 162 257305706Sgonzo#define KEY_NEXTSONG 163 258305706Sgonzo#define KEY_PLAYPAUSE 164 259305706Sgonzo#define KEY_PREVIOUSSONG 165 260305706Sgonzo#define KEY_STOPCD 166 261305706Sgonzo#define KEY_RECORD 167 262305706Sgonzo#define KEY_REWIND 168 263305706Sgonzo#define KEY_PHONE 169 /* Media Select Telephone */ 264305706Sgonzo#define KEY_ISO 170 265305706Sgonzo#define KEY_CONFIG 171 /* AL Consumer Control Configuration */ 266305706Sgonzo#define KEY_HOMEPAGE 172 /* AC Home */ 267305706Sgonzo#define KEY_REFRESH 173 /* AC Refresh */ 268305706Sgonzo#define KEY_EXIT 174 /* AC Exit */ 269305706Sgonzo#define KEY_MOVE 175 270305706Sgonzo#define KEY_EDIT 176 271305706Sgonzo#define KEY_SCROLLUP 177 272305706Sgonzo#define KEY_SCROLLDOWN 178 273305706Sgonzo#define KEY_KPLEFTPAREN 179 274305706Sgonzo#define KEY_KPRIGHTPAREN 180 275305706Sgonzo#define KEY_NEW 181 /* AC New */ 276305706Sgonzo#define KEY_REDO 182 /* AC Redo/Repeat */ 277305706Sgonzo 278305706Sgonzo#define KEY_F13 183 279305706Sgonzo#define KEY_F14 184 280305706Sgonzo#define KEY_F15 185 281305706Sgonzo#define KEY_F16 186 282305706Sgonzo#define KEY_F17 187 283305706Sgonzo#define KEY_F18 188 284305706Sgonzo#define KEY_F19 189 285305706Sgonzo#define KEY_F20 190 286305706Sgonzo#define KEY_F21 191 287305706Sgonzo#define KEY_F22 192 288305706Sgonzo#define KEY_F23 193 289305706Sgonzo#define KEY_F24 194 290305706Sgonzo 291305706Sgonzo#define KEY_PLAYCD 200 292305706Sgonzo#define KEY_PAUSECD 201 293305706Sgonzo#define KEY_PROG3 202 294305706Sgonzo#define KEY_PROG4 203 295305706Sgonzo#define KEY_DASHBOARD 204 /* AL Dashboard */ 296305706Sgonzo#define KEY_SUSPEND 205 297305706Sgonzo#define KEY_CLOSE 206 /* AC Close */ 298305706Sgonzo#define KEY_PLAY 207 299305706Sgonzo#define KEY_FASTFORWARD 208 300305706Sgonzo#define KEY_BASSBOOST 209 301305706Sgonzo#define KEY_PRINT 210 /* AC Print */ 302305706Sgonzo#define KEY_HP 211 303305706Sgonzo#define KEY_CAMERA 212 304305706Sgonzo#define KEY_SOUND 213 305305706Sgonzo#define KEY_QUESTION 214 306305706Sgonzo#define KEY_EMAIL 215 307305706Sgonzo#define KEY_CHAT 216 308305706Sgonzo#define KEY_SEARCH 217 309305706Sgonzo#define KEY_CONNECT 218 310305706Sgonzo#define KEY_FINANCE 219 /* AL Checkbook/Finance */ 311305706Sgonzo#define KEY_SPORT 220 312305706Sgonzo#define KEY_SHOP 221 313305706Sgonzo#define KEY_ALTERASE 222 314305706Sgonzo#define KEY_CANCEL 223 /* AC Cancel */ 315305706Sgonzo#define KEY_BRIGHTNESSDOWN 224 316305706Sgonzo#define KEY_BRIGHTNESSUP 225 317305706Sgonzo#define KEY_MEDIA 226 318305706Sgonzo 319305706Sgonzo#define KEY_SWITCHVIDEOMODE 227 /* Cycle between available video 320305706Sgonzo outputs (Monitor/LCD/TV-out/etc) */ 321305706Sgonzo#define KEY_KBDILLUMTOGGLE 228 322305706Sgonzo#define KEY_KBDILLUMDOWN 229 323305706Sgonzo#define KEY_KBDILLUMUP 230 324305706Sgonzo 325305706Sgonzo#define KEY_SEND 231 /* AC Send */ 326305706Sgonzo#define KEY_REPLY 232 /* AC Reply */ 327305706Sgonzo#define KEY_FORWARDMAIL 233 /* AC Forward Msg */ 328305706Sgonzo#define KEY_SAVE 234 /* AC Save */ 329305706Sgonzo#define KEY_DOCUMENTS 235 330305706Sgonzo 331305706Sgonzo#define KEY_BATTERY 236 332305706Sgonzo 333305706Sgonzo#define KEY_BLUETOOTH 237 334305706Sgonzo#define KEY_WLAN 238 335305706Sgonzo#define KEY_UWB 239 336305706Sgonzo 337305706Sgonzo#define KEY_UNKNOWN 240 338305706Sgonzo 339305706Sgonzo#define KEY_VIDEO_NEXT 241 /* drive next video source */ 340305706Sgonzo#define KEY_VIDEO_PREV 242 /* drive previous video source */ 341305706Sgonzo#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */ 342305706Sgonzo#define KEY_BRIGHTNESS_AUTO 244 /* Set Auto Brightness: manual 343305706Sgonzo brightness control is off, 344305706Sgonzo rely on ambient */ 345305706Sgonzo#define KEY_BRIGHTNESS_ZERO KEY_BRIGHTNESS_AUTO 346305706Sgonzo#define KEY_DISPLAY_OFF 245 /* display device to off state */ 347305706Sgonzo 348305706Sgonzo#define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */ 349305706Sgonzo#define KEY_WIMAX KEY_WWAN 350305706Sgonzo#define KEY_RFKILL 247 /* Key that controls all radios */ 351305706Sgonzo 352305706Sgonzo#define KEY_MICMUTE 248 /* Mute / unmute the microphone */ 353305706Sgonzo 354305706Sgonzo/* Code 255 is reserved for special needs of AT keyboard driver */ 355305706Sgonzo 356305706Sgonzo#define BTN_MISC 0x100 357305706Sgonzo#define BTN_0 0x100 358305706Sgonzo#define BTN_1 0x101 359305706Sgonzo#define BTN_2 0x102 360305706Sgonzo#define BTN_3 0x103 361305706Sgonzo#define BTN_4 0x104 362305706Sgonzo#define BTN_5 0x105 363305706Sgonzo#define BTN_6 0x106 364305706Sgonzo#define BTN_7 0x107 365305706Sgonzo#define BTN_8 0x108 366305706Sgonzo#define BTN_9 0x109 367305706Sgonzo 368305706Sgonzo#define BTN_MOUSE 0x110 369305706Sgonzo#define BTN_LEFT 0x110 370305706Sgonzo#define BTN_RIGHT 0x111 371305706Sgonzo#define BTN_MIDDLE 0x112 372305706Sgonzo#define BTN_SIDE 0x113 373305706Sgonzo#define BTN_EXTRA 0x114 374305706Sgonzo#define BTN_FORWARD 0x115 375305706Sgonzo#define BTN_BACK 0x116 376305706Sgonzo#define BTN_TASK 0x117 377305706Sgonzo 378305706Sgonzo#define BTN_JOYSTICK 0x120 379305706Sgonzo#define BTN_TRIGGER 0x120 380305706Sgonzo#define BTN_THUMB 0x121 381305706Sgonzo#define BTN_THUMB2 0x122 382305706Sgonzo#define BTN_TOP 0x123 383305706Sgonzo#define BTN_TOP2 0x124 384305706Sgonzo#define BTN_PINKIE 0x125 385305706Sgonzo#define BTN_BASE 0x126 386305706Sgonzo#define BTN_BASE2 0x127 387305706Sgonzo#define BTN_BASE3 0x128 388305706Sgonzo#define BTN_BASE4 0x129 389305706Sgonzo#define BTN_BASE5 0x12a 390305706Sgonzo#define BTN_BASE6 0x12b 391305706Sgonzo#define BTN_DEAD 0x12f 392305706Sgonzo 393305706Sgonzo#define BTN_GAMEPAD 0x130 394305706Sgonzo#define BTN_SOUTH 0x130 395305706Sgonzo#define BTN_A BTN_SOUTH 396305706Sgonzo#define BTN_EAST 0x131 397305706Sgonzo#define BTN_B BTN_EAST 398305706Sgonzo#define BTN_C 0x132 399305706Sgonzo#define BTN_NORTH 0x133 400305706Sgonzo#define BTN_X BTN_NORTH 401305706Sgonzo#define BTN_WEST 0x134 402305706Sgonzo#define BTN_Y BTN_WEST 403305706Sgonzo#define BTN_Z 0x135 404305706Sgonzo#define BTN_TL 0x136 405305706Sgonzo#define BTN_TR 0x137 406305706Sgonzo#define BTN_TL2 0x138 407305706Sgonzo#define BTN_TR2 0x139 408305706Sgonzo#define BTN_SELECT 0x13a 409305706Sgonzo#define BTN_START 0x13b 410305706Sgonzo#define BTN_MODE 0x13c 411305706Sgonzo#define BTN_THUMBL 0x13d 412305706Sgonzo#define BTN_THUMBR 0x13e 413305706Sgonzo 414305706Sgonzo#define BTN_DIGI 0x140 415305706Sgonzo#define BTN_TOOL_PEN 0x140 416305706Sgonzo#define BTN_TOOL_RUBBER 0x141 417305706Sgonzo#define BTN_TOOL_BRUSH 0x142 418305706Sgonzo#define BTN_TOOL_PENCIL 0x143 419305706Sgonzo#define BTN_TOOL_AIRBRUSH 0x144 420305706Sgonzo#define BTN_TOOL_FINGER 0x145 421305706Sgonzo#define BTN_TOOL_MOUSE 0x146 422305706Sgonzo#define BTN_TOOL_LENS 0x147 423305706Sgonzo#define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */ 424337290Swulf#define BTN_STYLUS3 0x149 425305706Sgonzo#define BTN_TOUCH 0x14a 426305706Sgonzo#define BTN_STYLUS 0x14b 427305706Sgonzo#define BTN_STYLUS2 0x14c 428305706Sgonzo#define BTN_TOOL_DOUBLETAP 0x14d 429305706Sgonzo#define BTN_TOOL_TRIPLETAP 0x14e 430305706Sgonzo#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */ 431305706Sgonzo 432305706Sgonzo#define BTN_WHEEL 0x150 433305706Sgonzo#define BTN_GEAR_DOWN 0x150 434305706Sgonzo#define BTN_GEAR_UP 0x151 435305706Sgonzo 436305706Sgonzo#define KEY_OK 0x160 437305706Sgonzo#define KEY_SELECT 0x161 438305706Sgonzo#define KEY_GOTO 0x162 439305706Sgonzo#define KEY_CLEAR 0x163 440305706Sgonzo#define KEY_POWER2 0x164 441305706Sgonzo#define KEY_OPTION 0x165 442305706Sgonzo#define KEY_INFO 0x166 /* AL OEM Features/Tips/Tutorial */ 443305706Sgonzo#define KEY_TIME 0x167 444305706Sgonzo#define KEY_VENDOR 0x168 445305706Sgonzo#define KEY_ARCHIVE 0x169 446305706Sgonzo#define KEY_PROGRAM 0x16a /* Media Select Program Guide */ 447305706Sgonzo#define KEY_CHANNEL 0x16b 448305706Sgonzo#define KEY_FAVORITES 0x16c 449305706Sgonzo#define KEY_EPG 0x16d 450305706Sgonzo#define KEY_PVR 0x16e /* Media Select Home */ 451305706Sgonzo#define KEY_MHP 0x16f 452305706Sgonzo#define KEY_LANGUAGE 0x170 453305706Sgonzo#define KEY_TITLE 0x171 454305706Sgonzo#define KEY_SUBTITLE 0x172 455305706Sgonzo#define KEY_ANGLE 0x173 456362207Swulf#define KEY_FULL_SCREEN 0x174 /* AC View Toggle */ 457362207Swulf#define KEY_ZOOM KEY_FULL_SCREEN 458305706Sgonzo#define KEY_MODE 0x175 459305706Sgonzo#define KEY_KEYBOARD 0x176 460362207Swulf#define KEY_ASPECT_RATIO 0x177 /* HUTRR37: Aspect */ 461362207Swulf#define KEY_SCREEN KEY_ASPECT_RATIO 462305706Sgonzo#define KEY_PC 0x178 /* Media Select Computer */ 463305706Sgonzo#define KEY_TV 0x179 /* Media Select TV */ 464305706Sgonzo#define KEY_TV2 0x17a /* Media Select Cable */ 465305706Sgonzo#define KEY_VCR 0x17b /* Media Select VCR */ 466305706Sgonzo#define KEY_VCR2 0x17c /* VCR Plus */ 467305706Sgonzo#define KEY_SAT 0x17d /* Media Select Satellite */ 468305706Sgonzo#define KEY_SAT2 0x17e 469305706Sgonzo#define KEY_CD 0x17f /* Media Select CD */ 470305706Sgonzo#define KEY_TAPE 0x180 /* Media Select Tape */ 471305706Sgonzo#define KEY_RADIO 0x181 472305706Sgonzo#define KEY_TUNER 0x182 /* Media Select Tuner */ 473305706Sgonzo#define KEY_PLAYER 0x183 474305706Sgonzo#define KEY_TEXT 0x184 475305706Sgonzo#define KEY_DVD 0x185 /* Media Select DVD */ 476305706Sgonzo#define KEY_AUX 0x186 477305706Sgonzo#define KEY_MP3 0x187 478305706Sgonzo#define KEY_AUDIO 0x188 /* AL Audio Browser */ 479305706Sgonzo#define KEY_VIDEO 0x189 /* AL Movie Browser */ 480305706Sgonzo#define KEY_DIRECTORY 0x18a 481305706Sgonzo#define KEY_LIST 0x18b 482305706Sgonzo#define KEY_MEMO 0x18c /* Media Select Messages */ 483305706Sgonzo#define KEY_CALENDAR 0x18d 484305706Sgonzo#define KEY_RED 0x18e 485305706Sgonzo#define KEY_GREEN 0x18f 486305706Sgonzo#define KEY_YELLOW 0x190 487305706Sgonzo#define KEY_BLUE 0x191 488305706Sgonzo#define KEY_CHANNELUP 0x192 /* Channel Increment */ 489305706Sgonzo#define KEY_CHANNELDOWN 0x193 /* Channel Decrement */ 490305706Sgonzo#define KEY_FIRST 0x194 491305706Sgonzo#define KEY_LAST 0x195 /* Recall Last */ 492305706Sgonzo#define KEY_AB 0x196 493305706Sgonzo#define KEY_NEXT 0x197 494305706Sgonzo#define KEY_RESTART 0x198 495305706Sgonzo#define KEY_SLOW 0x199 496305706Sgonzo#define KEY_SHUFFLE 0x19a 497305706Sgonzo#define KEY_BREAK 0x19b 498305706Sgonzo#define KEY_PREVIOUS 0x19c 499305706Sgonzo#define KEY_DIGITS 0x19d 500305706Sgonzo#define KEY_TEEN 0x19e 501305706Sgonzo#define KEY_TWEN 0x19f 502305706Sgonzo#define KEY_VIDEOPHONE 0x1a0 /* Media Select Video Phone */ 503305706Sgonzo#define KEY_GAMES 0x1a1 /* Media Select Games */ 504305706Sgonzo#define KEY_ZOOMIN 0x1a2 /* AC Zoom In */ 505305706Sgonzo#define KEY_ZOOMOUT 0x1a3 /* AC Zoom Out */ 506305706Sgonzo#define KEY_ZOOMRESET 0x1a4 /* AC Zoom */ 507305706Sgonzo#define KEY_WORDPROCESSOR 0x1a5 /* AL Word Processor */ 508305706Sgonzo#define KEY_EDITOR 0x1a6 /* AL Text Editor */ 509305706Sgonzo#define KEY_SPREADSHEET 0x1a7 /* AL Spreadsheet */ 510305706Sgonzo#define KEY_GRAPHICSEDITOR 0x1a8 /* AL Graphics Editor */ 511305706Sgonzo#define KEY_PRESENTATION 0x1a9 /* AL Presentation App */ 512305706Sgonzo#define KEY_DATABASE 0x1aa /* AL Database App */ 513305706Sgonzo#define KEY_NEWS 0x1ab /* AL Newsreader */ 514305706Sgonzo#define KEY_VOICEMAIL 0x1ac /* AL Voicemail */ 515305706Sgonzo#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */ 516305706Sgonzo#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */ 517305706Sgonzo#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */ 518305706Sgonzo#define KEY_BRIGHTNESS_TOGGLE KEY_DISPLAYTOGGLE 519305706Sgonzo#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */ 520305706Sgonzo#define KEY_LOGOFF 0x1b1 /* AL Logoff */ 521305706Sgonzo 522305706Sgonzo#define KEY_DOLLAR 0x1b2 523305706Sgonzo#define KEY_EURO 0x1b3 524305706Sgonzo 525305706Sgonzo#define KEY_FRAMEBACK 0x1b4 /* Consumer - transport controls */ 526305706Sgonzo#define KEY_FRAMEFORWARD 0x1b5 527305706Sgonzo#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */ 528305706Sgonzo#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */ 529305706Sgonzo#define KEY_10CHANNELSUP 0x1b8 /* 10 channels up (10+) */ 530305706Sgonzo#define KEY_10CHANNELSDOWN 0x1b9 /* 10 channels down (10-) */ 531305706Sgonzo#define KEY_IMAGES 0x1ba /* AL Image Browser */ 532305706Sgonzo 533305706Sgonzo#define KEY_DEL_EOL 0x1c0 534305706Sgonzo#define KEY_DEL_EOS 0x1c1 535305706Sgonzo#define KEY_INS_LINE 0x1c2 536305706Sgonzo#define KEY_DEL_LINE 0x1c3 537305706Sgonzo 538305706Sgonzo#define KEY_FN 0x1d0 539305706Sgonzo#define KEY_FN_ESC 0x1d1 540305706Sgonzo#define KEY_FN_F1 0x1d2 541305706Sgonzo#define KEY_FN_F2 0x1d3 542305706Sgonzo#define KEY_FN_F3 0x1d4 543305706Sgonzo#define KEY_FN_F4 0x1d5 544305706Sgonzo#define KEY_FN_F5 0x1d6 545305706Sgonzo#define KEY_FN_F6 0x1d7 546305706Sgonzo#define KEY_FN_F7 0x1d8 547305706Sgonzo#define KEY_FN_F8 0x1d9 548305706Sgonzo#define KEY_FN_F9 0x1da 549305706Sgonzo#define KEY_FN_F10 0x1db 550305706Sgonzo#define KEY_FN_F11 0x1dc 551305706Sgonzo#define KEY_FN_F12 0x1dd 552305706Sgonzo#define KEY_FN_1 0x1de 553305706Sgonzo#define KEY_FN_2 0x1df 554305706Sgonzo#define KEY_FN_D 0x1e0 555305706Sgonzo#define KEY_FN_E 0x1e1 556305706Sgonzo#define KEY_FN_F 0x1e2 557305706Sgonzo#define KEY_FN_S 0x1e3 558305706Sgonzo#define KEY_FN_B 0x1e4 559305706Sgonzo 560305706Sgonzo#define KEY_BRL_DOT1 0x1f1 561305706Sgonzo#define KEY_BRL_DOT2 0x1f2 562305706Sgonzo#define KEY_BRL_DOT3 0x1f3 563305706Sgonzo#define KEY_BRL_DOT4 0x1f4 564305706Sgonzo#define KEY_BRL_DOT5 0x1f5 565305706Sgonzo#define KEY_BRL_DOT6 0x1f6 566305706Sgonzo#define KEY_BRL_DOT7 0x1f7 567305706Sgonzo#define KEY_BRL_DOT8 0x1f8 568305706Sgonzo#define KEY_BRL_DOT9 0x1f9 569305706Sgonzo#define KEY_BRL_DOT10 0x1fa 570305706Sgonzo 571305706Sgonzo#define KEY_NUMERIC_0 0x200 /* used by phones, remote controls, */ 572305706Sgonzo#define KEY_NUMERIC_1 0x201 /* and other keypads */ 573305706Sgonzo#define KEY_NUMERIC_2 0x202 574305706Sgonzo#define KEY_NUMERIC_3 0x203 575305706Sgonzo#define KEY_NUMERIC_4 0x204 576305706Sgonzo#define KEY_NUMERIC_5 0x205 577305706Sgonzo#define KEY_NUMERIC_6 0x206 578305706Sgonzo#define KEY_NUMERIC_7 0x207 579305706Sgonzo#define KEY_NUMERIC_8 0x208 580305706Sgonzo#define KEY_NUMERIC_9 0x209 581305706Sgonzo#define KEY_NUMERIC_STAR 0x20a 582305706Sgonzo#define KEY_NUMERIC_POUND 0x20b 583305706Sgonzo#define KEY_NUMERIC_A 0x20c /* Phone key A - HUT Telephony 0xb9 */ 584305706Sgonzo#define KEY_NUMERIC_B 0x20d 585305706Sgonzo#define KEY_NUMERIC_C 0x20e 586305706Sgonzo#define KEY_NUMERIC_D 0x20f 587305706Sgonzo 588305706Sgonzo#define KEY_CAMERA_FOCUS 0x210 589305706Sgonzo#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */ 590305706Sgonzo 591305706Sgonzo#define KEY_TOUCHPAD_TOGGLE 0x212 /* Request switch touchpad on or off */ 592305706Sgonzo#define KEY_TOUCHPAD_ON 0x213 593305706Sgonzo#define KEY_TOUCHPAD_OFF 0x214 594305706Sgonzo 595305706Sgonzo#define KEY_CAMERA_ZOOMIN 0x215 596305706Sgonzo#define KEY_CAMERA_ZOOMOUT 0x216 597305706Sgonzo#define KEY_CAMERA_UP 0x217 598305706Sgonzo#define KEY_CAMERA_DOWN 0x218 599305706Sgonzo#define KEY_CAMERA_LEFT 0x219 600305706Sgonzo#define KEY_CAMERA_RIGHT 0x21a 601305706Sgonzo 602305706Sgonzo#define KEY_ATTENDANT_ON 0x21b 603305706Sgonzo#define KEY_ATTENDANT_OFF 0x21c 604305706Sgonzo#define KEY_ATTENDANT_TOGGLE 0x21d /* Attendant call on or off */ 605305706Sgonzo#define KEY_LIGHTS_TOGGLE 0x21e /* Reading light on or off */ 606305706Sgonzo 607305706Sgonzo#define BTN_DPAD_UP 0x220 608305706Sgonzo#define BTN_DPAD_DOWN 0x221 609305706Sgonzo#define BTN_DPAD_LEFT 0x222 610305706Sgonzo#define BTN_DPAD_RIGHT 0x223 611305706Sgonzo 612305706Sgonzo#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ 613337290Swulf#define KEY_ROTATE_LOCK_TOGGLE 0x231 /* Display rotation lock */ 614305706Sgonzo 615305706Sgonzo#define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */ 616305706Sgonzo#define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */ 617305706Sgonzo#define KEY_JOURNAL 0x242 /* AL Log/Journal/Timecard */ 618305706Sgonzo#define KEY_CONTROLPANEL 0x243 /* AL Control Panel */ 619305706Sgonzo#define KEY_APPSELECT 0x244 /* AL Select Task/Application */ 620305706Sgonzo#define KEY_SCREENSAVER 0x245 /* AL Screen Saver */ 621305706Sgonzo#define KEY_VOICECOMMAND 0x246 /* Listening Voice Command */ 622337290Swulf#define KEY_ASSISTANT 0x247 /* AL Context-aware desktop assistant */ 623362207Swulf#define KEY_KBD_LAYOUT_NEXT 0x248 /* AC Next Keyboard Layout Select */ 624305706Sgonzo 625305706Sgonzo#define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ 626305706Sgonzo#define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ 627305706Sgonzo 628305706Sgonzo#define KEY_KBDINPUTASSIST_PREV 0x260 629305706Sgonzo#define KEY_KBDINPUTASSIST_NEXT 0x261 630305706Sgonzo#define KEY_KBDINPUTASSIST_PREVGROUP 0x262 631305706Sgonzo#define KEY_KBDINPUTASSIST_NEXTGROUP 0x263 632305706Sgonzo#define KEY_KBDINPUTASSIST_ACCEPT 0x264 633305706Sgonzo#define KEY_KBDINPUTASSIST_CANCEL 0x265 634305706Sgonzo 635337290Swulf/* Diagonal movement keys */ 636337290Swulf#define KEY_RIGHT_UP 0x266 637337290Swulf#define KEY_RIGHT_DOWN 0x267 638337290Swulf#define KEY_LEFT_UP 0x268 639337290Swulf#define KEY_LEFT_DOWN 0x269 640337290Swulf 641337290Swulf#define KEY_ROOT_MENU 0x26a /* Show Device's Root Menu */ 642337290Swulf/* Show Top Menu of the Media (e.g. DVD) */ 643337290Swulf#define KEY_MEDIA_TOP_MENU 0x26b 644337290Swulf#define KEY_NUMERIC_11 0x26c 645337290Swulf#define KEY_NUMERIC_12 0x26d 646337290Swulf/* 647337290Swulf * Toggle Audio Description: refers to an audio service that helps blind and 648337290Swulf * visually impaired consumers understand the action in a program. Note: in 649337290Swulf * some countries this is referred to as "Video Description". 650337290Swulf */ 651337290Swulf#define KEY_AUDIO_DESC 0x26e 652337290Swulf#define KEY_3D_MODE 0x26f 653337290Swulf#define KEY_NEXT_FAVORITE 0x270 654337290Swulf#define KEY_STOP_RECORD 0x271 655337290Swulf#define KEY_PAUSE_RECORD 0x272 656337290Swulf#define KEY_VOD 0x273 /* Video on Demand */ 657337290Swulf#define KEY_UNMUTE 0x274 658337290Swulf#define KEY_FASTREVERSE 0x275 659337290Swulf#define KEY_SLOWREVERSE 0x276 660337290Swulf/* 661337290Swulf * Control a data application associated with the currently viewed channel, 662337290Swulf * e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.) 663337290Swulf */ 664337290Swulf#define KEY_DATA 0x277 665337290Swulf#define KEY_ONSCREEN_KEYBOARD 0x278 666362207Swulf/* Electronic privacy screen control */ 667362207Swulf#define KEY_PRIVACY_SCREEN_TOGGLE 0x279 668337290Swulf 669362207Swulf/* Select an area of screen to be copied */ 670362207Swulf#define KEY_SELECTIVE_SCREENSHOT 0x27a 671362207Swulf 672362207Swulf/* 673362207Swulf * Some keyboards have keys which do not have a defined meaning, these keys 674362207Swulf * are intended to be programmed / bound to macros by the user. For most 675362207Swulf * keyboards with these macro-keys the key-sequence to inject, or action to 676362207Swulf * take, is all handled by software on the host side. So from the kernel's 677362207Swulf * point of view these are just normal keys. 678362207Swulf * 679362207Swulf * The KEY_MACRO# codes below are intended for such keys, which may be labeled 680362207Swulf * e.g. G1-G18, or S1 - S30. The KEY_MACRO# codes MUST NOT be used for keys 681362207Swulf * where the marking on the key does indicate a defined meaning / purpose. 682362207Swulf * 683362207Swulf * The KEY_MACRO# codes MUST also NOT be used as fallback for when no existing 684362207Swulf * KEY_FOO define matches the marking / purpose. In this case a new KEY_FOO 685362207Swulf * define MUST be added. 686362207Swulf */ 687362207Swulf#define KEY_MACRO1 0x290 688362207Swulf#define KEY_MACRO2 0x291 689362207Swulf#define KEY_MACRO3 0x292 690362207Swulf#define KEY_MACRO4 0x293 691362207Swulf#define KEY_MACRO5 0x294 692362207Swulf#define KEY_MACRO6 0x295 693362207Swulf#define KEY_MACRO7 0x296 694362207Swulf#define KEY_MACRO8 0x297 695362207Swulf#define KEY_MACRO9 0x298 696362207Swulf#define KEY_MACRO10 0x299 697362207Swulf#define KEY_MACRO11 0x29a 698362207Swulf#define KEY_MACRO12 0x29b 699362207Swulf#define KEY_MACRO13 0x29c 700362207Swulf#define KEY_MACRO14 0x29d 701362207Swulf#define KEY_MACRO15 0x29e 702362207Swulf#define KEY_MACRO16 0x29f 703362207Swulf#define KEY_MACRO17 0x2a0 704362207Swulf#define KEY_MACRO18 0x2a1 705362207Swulf#define KEY_MACRO19 0x2a2 706362207Swulf#define KEY_MACRO20 0x2a3 707362207Swulf#define KEY_MACRO21 0x2a4 708362207Swulf#define KEY_MACRO22 0x2a5 709362207Swulf#define KEY_MACRO23 0x2a6 710362207Swulf#define KEY_MACRO24 0x2a7 711362207Swulf#define KEY_MACRO25 0x2a8 712362207Swulf#define KEY_MACRO26 0x2a9 713362207Swulf#define KEY_MACRO27 0x2aa 714362207Swulf#define KEY_MACRO28 0x2ab 715362207Swulf#define KEY_MACRO29 0x2ac 716362207Swulf#define KEY_MACRO30 0x2ad 717362207Swulf 718362207Swulf/* 719362207Swulf * Some keyboards with the macro-keys described above have some extra keys 720362207Swulf * for controlling the host-side software responsible for the macro handling: 721362207Swulf * -A macro recording start/stop key. Note that not all keyboards which emit 722362207Swulf * KEY_MACRO_RECORD_START will also emit KEY_MACRO_RECORD_STOP if 723362207Swulf * KEY_MACRO_RECORD_STOP is not advertised, then KEY_MACRO_RECORD_START 724362207Swulf * should be interpreted as a recording start/stop toggle; 725362207Swulf * -Keys for switching between different macro (pre)sets, either a key for 726362207Swulf * cycling through the configured presets or keys to directly select a preset. 727362207Swulf */ 728362207Swulf#define KEY_MACRO_RECORD_START 0x2b0 729362207Swulf#define KEY_MACRO_RECORD_STOP 0x2b1 730362207Swulf#define KEY_MACRO_PRESET_CYCLE 0x2b2 731362207Swulf#define KEY_MACRO_PRESET1 0x2b3 732362207Swulf#define KEY_MACRO_PRESET2 0x2b4 733362207Swulf#define KEY_MACRO_PRESET3 0x2b5 734362207Swulf 735362207Swulf/* 736362207Swulf * Some keyboards have a buildin LCD panel where the contents are controlled 737362207Swulf * by the host. Often these have a number of keys directly below the LCD 738362207Swulf * intended for controlling a menu shown on the LCD. These keys often don't 739362207Swulf * have any labeling so we just name them KEY_KBD_LCD_MENU# 740362207Swulf */ 741362207Swulf#define KEY_KBD_LCD_MENU1 0x2b8 742362207Swulf#define KEY_KBD_LCD_MENU2 0x2b9 743362207Swulf#define KEY_KBD_LCD_MENU3 0x2ba 744362207Swulf#define KEY_KBD_LCD_MENU4 0x2bb 745362207Swulf#define KEY_KBD_LCD_MENU5 0x2bc 746362207Swulf 747305706Sgonzo#define BTN_TRIGGER_HAPPY 0x2c0 748305706Sgonzo#define BTN_TRIGGER_HAPPY1 0x2c0 749305706Sgonzo#define BTN_TRIGGER_HAPPY2 0x2c1 750305706Sgonzo#define BTN_TRIGGER_HAPPY3 0x2c2 751305706Sgonzo#define BTN_TRIGGER_HAPPY4 0x2c3 752305706Sgonzo#define BTN_TRIGGER_HAPPY5 0x2c4 753305706Sgonzo#define BTN_TRIGGER_HAPPY6 0x2c5 754305706Sgonzo#define BTN_TRIGGER_HAPPY7 0x2c6 755305706Sgonzo#define BTN_TRIGGER_HAPPY8 0x2c7 756305706Sgonzo#define BTN_TRIGGER_HAPPY9 0x2c8 757305706Sgonzo#define BTN_TRIGGER_HAPPY10 0x2c9 758305706Sgonzo#define BTN_TRIGGER_HAPPY11 0x2ca 759305706Sgonzo#define BTN_TRIGGER_HAPPY12 0x2cb 760305706Sgonzo#define BTN_TRIGGER_HAPPY13 0x2cc 761305706Sgonzo#define BTN_TRIGGER_HAPPY14 0x2cd 762305706Sgonzo#define BTN_TRIGGER_HAPPY15 0x2ce 763305706Sgonzo#define BTN_TRIGGER_HAPPY16 0x2cf 764305706Sgonzo#define BTN_TRIGGER_HAPPY17 0x2d0 765305706Sgonzo#define BTN_TRIGGER_HAPPY18 0x2d1 766305706Sgonzo#define BTN_TRIGGER_HAPPY19 0x2d2 767305706Sgonzo#define BTN_TRIGGER_HAPPY20 0x2d3 768305706Sgonzo#define BTN_TRIGGER_HAPPY21 0x2d4 769305706Sgonzo#define BTN_TRIGGER_HAPPY22 0x2d5 770305706Sgonzo#define BTN_TRIGGER_HAPPY23 0x2d6 771305706Sgonzo#define BTN_TRIGGER_HAPPY24 0x2d7 772305706Sgonzo#define BTN_TRIGGER_HAPPY25 0x2d8 773305706Sgonzo#define BTN_TRIGGER_HAPPY26 0x2d9 774305706Sgonzo#define BTN_TRIGGER_HAPPY27 0x2da 775305706Sgonzo#define BTN_TRIGGER_HAPPY28 0x2db 776305706Sgonzo#define BTN_TRIGGER_HAPPY29 0x2dc 777305706Sgonzo#define BTN_TRIGGER_HAPPY30 0x2dd 778305706Sgonzo#define BTN_TRIGGER_HAPPY31 0x2de 779305706Sgonzo#define BTN_TRIGGER_HAPPY32 0x2df 780305706Sgonzo#define BTN_TRIGGER_HAPPY33 0x2e0 781305706Sgonzo#define BTN_TRIGGER_HAPPY34 0x2e1 782305706Sgonzo#define BTN_TRIGGER_HAPPY35 0x2e2 783305706Sgonzo#define BTN_TRIGGER_HAPPY36 0x2e3 784305706Sgonzo#define BTN_TRIGGER_HAPPY37 0x2e4 785305706Sgonzo#define BTN_TRIGGER_HAPPY38 0x2e5 786305706Sgonzo#define BTN_TRIGGER_HAPPY39 0x2e6 787305706Sgonzo#define BTN_TRIGGER_HAPPY40 0x2e7 788305706Sgonzo 789305706Sgonzo/* We avoid low common keys in module aliases so they don't get huge. */ 790305706Sgonzo#define KEY_MIN_INTERESTING KEY_MUTE 791305706Sgonzo#define KEY_MAX 0x2ff 792305706Sgonzo#define KEY_CNT (KEY_MAX+1) 793305706Sgonzo 794305706Sgonzo/* 795305706Sgonzo * Relative axes 796305706Sgonzo */ 797305706Sgonzo 798305706Sgonzo#define REL_X 0x00 799305706Sgonzo#define REL_Y 0x01 800305706Sgonzo#define REL_Z 0x02 801305706Sgonzo#define REL_RX 0x03 802305706Sgonzo#define REL_RY 0x04 803305706Sgonzo#define REL_RZ 0x05 804305706Sgonzo#define REL_HWHEEL 0x06 805305706Sgonzo#define REL_DIAL 0x07 806305706Sgonzo#define REL_WHEEL 0x08 807305706Sgonzo#define REL_MISC 0x09 808362207Swulf/* 809362207Swulf * 0x0a is reserved and should not be used in input drivers. 810362207Swulf * It was used by HID as REL_MISC+1 and userspace needs to detect if 811362207Swulf * the next REL_* event is correct or is just REL_MISC + n. 812362207Swulf * We define here REL_RESERVED so userspace can rely on it and detect 813362207Swulf * the situation described above. 814362207Swulf */ 815362207Swulf#define REL_RESERVED 0x0a 816362207Swulf#define REL_WHEEL_HI_RES 0x0b 817362207Swulf#define REL_HWHEEL_HI_RES 0x0c 818305706Sgonzo#define REL_MAX 0x0f 819305706Sgonzo#define REL_CNT (REL_MAX+1) 820305706Sgonzo 821305706Sgonzo/* 822305706Sgonzo * Absolute axes 823305706Sgonzo */ 824305706Sgonzo 825305706Sgonzo#define ABS_X 0x00 826305706Sgonzo#define ABS_Y 0x01 827305706Sgonzo#define ABS_Z 0x02 828305706Sgonzo#define ABS_RX 0x03 829305706Sgonzo#define ABS_RY 0x04 830305706Sgonzo#define ABS_RZ 0x05 831305706Sgonzo#define ABS_THROTTLE 0x06 832305706Sgonzo#define ABS_RUDDER 0x07 833305706Sgonzo#define ABS_WHEEL 0x08 834305706Sgonzo#define ABS_GAS 0x09 835305706Sgonzo#define ABS_BRAKE 0x0a 836305706Sgonzo#define ABS_HAT0X 0x10 837305706Sgonzo#define ABS_HAT0Y 0x11 838305706Sgonzo#define ABS_HAT1X 0x12 839305706Sgonzo#define ABS_HAT1Y 0x13 840305706Sgonzo#define ABS_HAT2X 0x14 841305706Sgonzo#define ABS_HAT2Y 0x15 842305706Sgonzo#define ABS_HAT3X 0x16 843305706Sgonzo#define ABS_HAT3Y 0x17 844305706Sgonzo#define ABS_PRESSURE 0x18 845305706Sgonzo#define ABS_DISTANCE 0x19 846305706Sgonzo#define ABS_TILT_X 0x1a 847305706Sgonzo#define ABS_TILT_Y 0x1b 848305706Sgonzo#define ABS_TOOL_WIDTH 0x1c 849305706Sgonzo 850305706Sgonzo#define ABS_VOLUME 0x20 851305706Sgonzo 852305706Sgonzo#define ABS_MISC 0x28 853305706Sgonzo 854362207Swulf/* 855362207Swulf * 0x2e is reserved and should not be used in input drivers. 856362207Swulf * It was used by HID as ABS_MISC+6 and userspace needs to detect if 857362207Swulf * the next ABS_* event is correct or is just ABS_MISC + n. 858362207Swulf * We define here ABS_RESERVED so userspace can rely on it and detect 859362207Swulf * the situation described above. 860362207Swulf */ 861362207Swulf#define ABS_RESERVED 0x2e 862362207Swulf 863305706Sgonzo#define ABS_MT_SLOT 0x2f /* MT slot being modified */ 864305706Sgonzo#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */ 865305706Sgonzo#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */ 866305706Sgonzo#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */ 867305706Sgonzo#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */ 868305706Sgonzo#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */ 869305706Sgonzo#define ABS_MT_POSITION_X 0x35 /* Center X touch position */ 870305706Sgonzo#define ABS_MT_POSITION_Y 0x36 /* Center Y touch position */ 871305706Sgonzo#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */ 872305706Sgonzo#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */ 873305706Sgonzo#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */ 874305706Sgonzo#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ 875305706Sgonzo#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ 876305706Sgonzo#define ABS_MT_TOOL_X 0x3c /* Center X tool position */ 877305706Sgonzo#define ABS_MT_TOOL_Y 0x3d /* Center Y tool position */ 878305706Sgonzo 879305706Sgonzo#define ABS_MAX 0x3f 880305706Sgonzo#define ABS_CNT (ABS_MAX+1) 881305706Sgonzo 882305706Sgonzo/* 883305706Sgonzo * Switch events 884305706Sgonzo */ 885305706Sgonzo 886305706Sgonzo#define SW_LID 0x00 /* set = lid shut */ 887305706Sgonzo#define SW_TABLET_MODE 0x01 /* set = tablet mode */ 888305706Sgonzo#define SW_HEADPHONE_INSERT 0x02 /* set = inserted */ 889305706Sgonzo#define SW_RFKILL_ALL 0x03 /* rfkill master switch, type "any" 890305706Sgonzo set = radio enabled */ 891305706Sgonzo#define SW_RADIO SW_RFKILL_ALL /* deprecated */ 892305706Sgonzo#define SW_MICROPHONE_INSERT 0x04 /* set = inserted */ 893305706Sgonzo#define SW_DOCK 0x05 /* set = plugged into dock */ 894305706Sgonzo#define SW_LINEOUT_INSERT 0x06 /* set = inserted */ 895305706Sgonzo#define SW_JACK_PHYSICAL_INSERT 0x07 /* set = mechanical switch set */ 896305706Sgonzo#define SW_VIDEOOUT_INSERT 0x08 /* set = inserted */ 897305706Sgonzo#define SW_CAMERA_LENS_COVER 0x09 /* set = lens covered */ 898305706Sgonzo#define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */ 899305706Sgonzo#define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */ 900305706Sgonzo#define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */ 901305706Sgonzo#define SW_LINEIN_INSERT 0x0d /* set = inserted */ 902305706Sgonzo#define SW_MUTE_DEVICE 0x0e /* set = device disabled */ 903337290Swulf#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 904305706Sgonzo#define SW_MAX 0x0f 905305706Sgonzo#define SW_CNT (SW_MAX+1) 906305706Sgonzo 907305706Sgonzo/* 908305706Sgonzo * Misc events 909305706Sgonzo */ 910305706Sgonzo 911305706Sgonzo#define MSC_SERIAL 0x00 912305706Sgonzo#define MSC_PULSELED 0x01 913305706Sgonzo#define MSC_GESTURE 0x02 914305706Sgonzo#define MSC_RAW 0x03 915305706Sgonzo#define MSC_SCAN 0x04 916305706Sgonzo#define MSC_TIMESTAMP 0x05 917305706Sgonzo#define MSC_MAX 0x07 918305706Sgonzo#define MSC_CNT (MSC_MAX+1) 919305706Sgonzo 920305706Sgonzo/* 921305706Sgonzo * LEDs 922305706Sgonzo */ 923305706Sgonzo 924305706Sgonzo#define LED_NUML 0x00 925305706Sgonzo#define LED_CAPSL 0x01 926305706Sgonzo#define LED_SCROLLL 0x02 927305706Sgonzo#define LED_COMPOSE 0x03 928305706Sgonzo#define LED_KANA 0x04 929305706Sgonzo#define LED_SLEEP 0x05 930305706Sgonzo#define LED_SUSPEND 0x06 931305706Sgonzo#define LED_MUTE 0x07 932305706Sgonzo#define LED_MISC 0x08 933305706Sgonzo#define LED_MAIL 0x09 934305706Sgonzo#define LED_CHARGING 0x0a 935305706Sgonzo#define LED_MAX 0x0f 936305706Sgonzo#define LED_CNT (LED_MAX+1) 937305706Sgonzo 938305706Sgonzo/* 939305706Sgonzo * Autorepeat values 940305706Sgonzo */ 941305706Sgonzo 942305706Sgonzo#define REP_DELAY 0x00 943305706Sgonzo#define REP_PERIOD 0x01 944305706Sgonzo#define REP_MAX 0x01 945305706Sgonzo#define REP_CNT (REP_MAX+1) 946305706Sgonzo 947305706Sgonzo/* 948305706Sgonzo * Sounds 949305706Sgonzo */ 950305706Sgonzo 951305706Sgonzo#define SND_CLICK 0x00 952305706Sgonzo#define SND_BELL 0x01 953305706Sgonzo#define SND_TONE 0x02 954305706Sgonzo#define SND_MAX 0x07 955305706Sgonzo#define SND_CNT (SND_MAX+1) 956305706Sgonzo 957305706Sgonzo#endif /* _EVDEV_INPUT_EVENT_CODES_H */ 958