Added definition checks and additional key codes according to evtest

This commit is contained in:
Vftdan 2024-08-16 14:23:09 +02:00
parent cbadc3d85d
commit 1704817009
1 changed files with 273 additions and 5 deletions

View File

@ -1,15 +1,23 @@
#ifdef DECLARE_EVENT_CODE #ifdef DECLARE_EVENT_CODE
#ifdef INPUT_PROP_MAX
DECLARE_EVENT_CODE(input_property, INPUT_PROP, POINTER) DECLARE_EVENT_CODE(input_property, INPUT_PROP, POINTER)
DECLARE_EVENT_CODE(input_property, INPUT_PROP, DIRECT) DECLARE_EVENT_CODE(input_property, INPUT_PROP, DIRECT)
DECLARE_EVENT_CODE(input_property, INPUT_PROP, BUTTONPAD) DECLARE_EVENT_CODE(input_property, INPUT_PROP, BUTTONPAD)
DECLARE_EVENT_CODE(input_property, INPUT_PROP, SEMI_MT) DECLARE_EVENT_CODE(input_property, INPUT_PROP, SEMI_MT)
#ifdef INPUT_PROP_TOPBUTTONPAD
DECLARE_EVENT_CODE(input_property, INPUT_PROP, TOPBUTTONPAD) DECLARE_EVENT_CODE(input_property, INPUT_PROP, TOPBUTTONPAD)
#endif
#ifdef INPUT_PROP_POINTING_STICK
DECLARE_EVENT_CODE(input_property, INPUT_PROP, POINTING_STICK) DECLARE_EVENT_CODE(input_property, INPUT_PROP, POINTING_STICK)
#endif
#ifdef INPUT_PROP_ACCELEROMETER
DECLARE_EVENT_CODE(input_property, INPUT_PROP, ACCELEROMETER) DECLARE_EVENT_CODE(input_property, INPUT_PROP, ACCELEROMETER)
#endif
DECLARE_EVENT_CODE(input_property, INPUT_PROP, MAX) DECLARE_EVENT_CODE(input_property, INPUT_PROP, MAX)
DECLARE_EVENT_CODE(input_property, INPUT_PROP, CNT) DECLARE_EVENT_CODE(input_property, INPUT_PROP, CNT)
#endif
DECLARE_EVENT_CODE(event_type, EV, SYN) DECLARE_EVENT_CODE(event_type, EV, SYN)
DECLARE_EVENT_CODE(event_type, EV, KEY) DECLARE_EVENT_CODE(event_type, EV, KEY)
@ -153,7 +161,9 @@ DECLARE_EVENT_CODE(key_event, KEY, POWER)
DECLARE_EVENT_CODE(key_event, KEY, KPEQUAL) DECLARE_EVENT_CODE(key_event, KEY, KPEQUAL)
DECLARE_EVENT_CODE(key_event, KEY, KPPLUSMINUS) DECLARE_EVENT_CODE(key_event, KEY, KPPLUSMINUS)
DECLARE_EVENT_CODE(key_event, KEY, PAUSE) DECLARE_EVENT_CODE(key_event, KEY, PAUSE)
#ifdef KEY_SCALE
DECLARE_EVENT_CODE(key_event, KEY, SCALE) DECLARE_EVENT_CODE(key_event, KEY, SCALE)
#endif
DECLARE_EVENT_CODE(key_event, KEY, KPCOMMA) DECLARE_EVENT_CODE(key_event, KEY, KPCOMMA)
DECLARE_EVENT_CODE(key_event, KEY, HANGEUL) DECLARE_EVENT_CODE(key_event, KEY, HANGEUL)
@ -239,7 +249,9 @@ DECLARE_EVENT_CODE(key_event, KEY, PLAYCD)
DECLARE_EVENT_CODE(key_event, KEY, PAUSECD) DECLARE_EVENT_CODE(key_event, KEY, PAUSECD)
DECLARE_EVENT_CODE(key_event, KEY, PROG3) DECLARE_EVENT_CODE(key_event, KEY, PROG3)
DECLARE_EVENT_CODE(key_event, KEY, PROG4) DECLARE_EVENT_CODE(key_event, KEY, PROG4)
#ifdef KEY_DASHBOARD
DECLARE_EVENT_CODE(key_event, KEY, DASHBOARD) DECLARE_EVENT_CODE(key_event, KEY, DASHBOARD)
#endif
DECLARE_EVENT_CODE(key_event, KEY, SUSPEND) DECLARE_EVENT_CODE(key_event, KEY, SUSPEND)
DECLARE_EVENT_CODE(key_event, KEY, CLOSE) DECLARE_EVENT_CODE(key_event, KEY, CLOSE)
DECLARE_EVENT_CODE(key_event, KEY, PLAY) DECLARE_EVENT_CODE(key_event, KEY, PLAY)
@ -277,23 +289,37 @@ DECLARE_EVENT_CODE(key_event, KEY, DOCUMENTS)
DECLARE_EVENT_CODE(key_event, KEY, BATTERY) DECLARE_EVENT_CODE(key_event, KEY, BATTERY)
DECLARE_EVENT_CODE(key_event, KEY, BLUETOOTH) DECLARE_EVENT_CODE(key_event, KEY, BLUETOOTH)
#ifdef KEY_WLAN
DECLARE_EVENT_CODE(key_event, KEY, WLAN) DECLARE_EVENT_CODE(key_event, KEY, WLAN)
#endif
#ifdef KEY_UWB
DECLARE_EVENT_CODE(key_event, KEY, UWB) DECLARE_EVENT_CODE(key_event, KEY, UWB)
#endif
DECLARE_EVENT_CODE(key_event, KEY, UNKNOWN) DECLARE_EVENT_CODE(key_event, KEY, UNKNOWN)
#ifdef KEY_VIDEO_NEXT
DECLARE_EVENT_CODE(key_event, KEY, VIDEO_NEXT) DECLARE_EVENT_CODE(key_event, KEY, VIDEO_NEXT)
#endif
#ifdef KEY_VIDEO_PREV
DECLARE_EVENT_CODE(key_event, KEY, VIDEO_PREV) DECLARE_EVENT_CODE(key_event, KEY, VIDEO_PREV)
#endif
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_CYCLE) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_CYCLE)
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_AUTO) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_AUTO)
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_ZERO) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_ZERO)
DECLARE_EVENT_CODE(key_event, KEY, DISPLAY_OFF) DECLARE_EVENT_CODE(key_event, KEY, DISPLAY_OFF)
DECLARE_EVENT_CODE(key_event, KEY, WWAN) DECLARE_EVENT_CODE(key_event, KEY, WWAN)
#ifdef KEY_WIMAX
DECLARE_EVENT_CODE(key_event, KEY, WIMAX) DECLARE_EVENT_CODE(key_event, KEY, WIMAX)
#endif
#ifdef KEY_RFKILL
DECLARE_EVENT_CODE(key_event, KEY, RFKILL) DECLARE_EVENT_CODE(key_event, KEY, RFKILL)
#endif
#ifdef KEY_MICMUTE
DECLARE_EVENT_CODE(key_event, KEY, MICMUTE) DECLARE_EVENT_CODE(key_event, KEY, MICMUTE)
#endif
DECLARE_EVENT_CODE(button_event, BTN, MISC) DECLARE_EVENT_CODE(button_event, BTN, MISC)
DECLARE_EVENT_CODE(button_event, BTN, 0) DECLARE_EVENT_CODE(button_event, BTN, 0)
@ -333,14 +359,16 @@ DECLARE_EVENT_CODE(button_event, BTN, BASE6)
DECLARE_EVENT_CODE(button_event, BTN, DEAD) DECLARE_EVENT_CODE(button_event, BTN, DEAD)
DECLARE_EVENT_CODE(button_event, BTN, GAMEPAD) DECLARE_EVENT_CODE(button_event, BTN, GAMEPAD)
#ifdef BTN_SOUTH
DECLARE_EVENT_CODE(button_event, BTN, SOUTH) DECLARE_EVENT_CODE(button_event, BTN, SOUTH)
DECLARE_EVENT_CODE(button_event, BTN, A)
DECLARE_EVENT_CODE(button_event, BTN, EAST) DECLARE_EVENT_CODE(button_event, BTN, EAST)
DECLARE_EVENT_CODE(button_event, BTN, NORTH)
DECLARE_EVENT_CODE(button_event, BTN, WEST)
#endif
DECLARE_EVENT_CODE(button_event, BTN, A)
DECLARE_EVENT_CODE(button_event, BTN, B) DECLARE_EVENT_CODE(button_event, BTN, B)
DECLARE_EVENT_CODE(button_event, BTN, C) DECLARE_EVENT_CODE(button_event, BTN, C)
DECLARE_EVENT_CODE(button_event, BTN, NORTH)
DECLARE_EVENT_CODE(button_event, BTN, X) DECLARE_EVENT_CODE(button_event, BTN, X)
DECLARE_EVENT_CODE(button_event, BTN, WEST)
DECLARE_EVENT_CODE(button_event, BTN, Y) DECLARE_EVENT_CODE(button_event, BTN, Y)
DECLARE_EVENT_CODE(button_event, BTN, Z) DECLARE_EVENT_CODE(button_event, BTN, Z)
DECLARE_EVENT_CODE(button_event, BTN, TL) DECLARE_EVENT_CODE(button_event, BTN, TL)
@ -362,14 +390,20 @@ DECLARE_EVENT_CODE(button_event, BTN, TOOL_AIRBRUSH)
DECLARE_EVENT_CODE(button_event, BTN, TOOL_FINGER) DECLARE_EVENT_CODE(button_event, BTN, TOOL_FINGER)
DECLARE_EVENT_CODE(button_event, BTN, TOOL_MOUSE) DECLARE_EVENT_CODE(button_event, BTN, TOOL_MOUSE)
DECLARE_EVENT_CODE(button_event, BTN, TOOL_LENS) DECLARE_EVENT_CODE(button_event, BTN, TOOL_LENS)
#ifdef BTN_TOOL_QUINTTAP
DECLARE_EVENT_CODE(button_event, BTN, TOOL_QUINTTAP) DECLARE_EVENT_CODE(button_event, BTN, TOOL_QUINTTAP)
#endif
#ifdef BTN_STYLUS3
DECLARE_EVENT_CODE(button_event, BTN, STYLUS3) DECLARE_EVENT_CODE(button_event, BTN, STYLUS3)
#endif
DECLARE_EVENT_CODE(button_event, BTN, TOUCH) DECLARE_EVENT_CODE(button_event, BTN, TOUCH)
DECLARE_EVENT_CODE(button_event, BTN, STYLUS) DECLARE_EVENT_CODE(button_event, BTN, STYLUS)
DECLARE_EVENT_CODE(button_event, BTN, STYLUS2) DECLARE_EVENT_CODE(button_event, BTN, STYLUS2)
DECLARE_EVENT_CODE(button_event, BTN, TOOL_DOUBLETAP) DECLARE_EVENT_CODE(button_event, BTN, TOOL_DOUBLETAP)
DECLARE_EVENT_CODE(button_event, BTN, TOOL_TRIPLETAP) DECLARE_EVENT_CODE(button_event, BTN, TOOL_TRIPLETAP)
#ifdef BTN_TOOL_QUADTAP
DECLARE_EVENT_CODE(button_event, BTN, TOOL_QUADTAP) DECLARE_EVENT_CODE(button_event, BTN, TOOL_QUADTAP)
#endif
DECLARE_EVENT_CODE(button_event, BTN, WHEEL) DECLARE_EVENT_CODE(button_event, BTN, WHEEL)
DECLARE_EVENT_CODE(button_event, BTN, GEAR_DOWN) DECLARE_EVENT_CODE(button_event, BTN, GEAR_DOWN)
@ -458,19 +492,47 @@ DECLARE_EVENT_CODE(key_event, KEY, ADDRESSBOOK)
DECLARE_EVENT_CODE(key_event, KEY, MESSENGER) DECLARE_EVENT_CODE(key_event, KEY, MESSENGER)
DECLARE_EVENT_CODE(key_event, KEY, DISPLAYTOGGLE) DECLARE_EVENT_CODE(key_event, KEY, DISPLAYTOGGLE)
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_TOGGLE)
#ifdef KEY_SPELLCHECK
DECLARE_EVENT_CODE(key_event, KEY, SPELLCHECK) DECLARE_EVENT_CODE(key_event, KEY, SPELLCHECK)
#endif
#ifdef KEY_LOGOFF
DECLARE_EVENT_CODE(key_event, KEY, LOGOFF) DECLARE_EVENT_CODE(key_event, KEY, LOGOFF)
#endif
#ifdef KEY_DOLLAR
DECLARE_EVENT_CODE(key_event, KEY, DOLLAR) DECLARE_EVENT_CODE(key_event, KEY, DOLLAR)
#endif
#ifdef KEY_EURO
DECLARE_EVENT_CODE(key_event, KEY, EURO) DECLARE_EVENT_CODE(key_event, KEY, EURO)
#endif
#ifdef KEY_FRAMEBACK
DECLARE_EVENT_CODE(key_event, KEY, FRAMEBACK) DECLARE_EVENT_CODE(key_event, KEY, FRAMEBACK)
#endif
#ifdef KEY_FRAMEFORWARD
DECLARE_EVENT_CODE(key_event, KEY, FRAMEFORWARD) DECLARE_EVENT_CODE(key_event, KEY, FRAMEFORWARD)
#endif
#ifdef KEY_CONTEXT_MENU
DECLARE_EVENT_CODE(key_event, KEY, CONTEXT_MENU) DECLARE_EVENT_CODE(key_event, KEY, CONTEXT_MENU)
#endif
#ifdef KEY_MEDIA_REPEAT
DECLARE_EVENT_CODE(key_event, KEY, MEDIA_REPEAT) DECLARE_EVENT_CODE(key_event, KEY, MEDIA_REPEAT)
#endif
#ifdef KEY_10CHANNELSUP
DECLARE_EVENT_CODE(key_event, KEY, 10CHANNELSUP) DECLARE_EVENT_CODE(key_event, KEY, 10CHANNELSUP)
#endif
#ifdef KEY_10CHANNELSDOWN
DECLARE_EVENT_CODE(key_event, KEY, 10CHANNELSDOWN) DECLARE_EVENT_CODE(key_event, KEY, 10CHANNELSDOWN)
#endif
#ifdef KEY_IMAGES
DECLARE_EVENT_CODE(key_event, KEY, IMAGES) DECLARE_EVENT_CODE(key_event, KEY, IMAGES)
#endif
#ifdef KEY_NOTIFICATION_CENTER
DECLARE_EVENT_CODE(key_event, KEY, NOTIFICATION_CENTER)
DECLARE_EVENT_CODE(key_event, KEY, PICKUP_PHONE)
DECLARE_EVENT_CODE(key_event, KEY, HANGUP_PHONE)
#endif
DECLARE_EVENT_CODE(key_event, KEY, DEL_EOL) DECLARE_EVENT_CODE(key_event, KEY, DEL_EOL)
DECLARE_EVENT_CODE(key_event, KEY, DEL_EOS) DECLARE_EVENT_CODE(key_event, KEY, DEL_EOS)
@ -499,6 +561,10 @@ DECLARE_EVENT_CODE(key_event, KEY, FN_F)
DECLARE_EVENT_CODE(key_event, KEY, FN_S) DECLARE_EVENT_CODE(key_event, KEY, FN_S)
DECLARE_EVENT_CODE(key_event, KEY, FN_B) DECLARE_EVENT_CODE(key_event, KEY, FN_B)
#ifdef KEY_FN_RIGHT_SHIFT
DECLARE_EVENT_CODE(key_event, KEY, FN_RIGHT_SHIFT)
#endif
DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT1) DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT1)
DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT2) DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT2)
DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT3) DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT3)
@ -510,6 +576,7 @@ DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT8)
DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT9) DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT9)
DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT10) DECLARE_EVENT_CODE(key_event, KEY, BRL_DOT10)
#ifdef KEY_NUMERIC_0
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_0) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_0)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_1) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_1)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_2) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_2)
@ -522,67 +589,142 @@ DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_8)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_9) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_9)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_STAR) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_STAR)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_POUND) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_POUND)
#endif
#ifdef KEY_NUMERIC_A
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_A) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_A)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_B) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_B)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_C) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_C)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_D) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_D)
#endif
#ifdef KEY_CAMERA_FOCUS
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_FOCUS) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_FOCUS)
#endif
#ifdef KEY_WPS_BUTTON
DECLARE_EVENT_CODE(key_event, KEY, WPS_BUTTON) DECLARE_EVENT_CODE(key_event, KEY, WPS_BUTTON)
#endif
#ifdef KEY_TOUCHPAD_TOGGLE
DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_TOGGLE)
DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_ON) DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_ON)
DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_OFF) DECLARE_EVENT_CODE(key_event, KEY, TOUCHPAD_OFF)
#endif
#ifdef KEY_CAMERA_ZOOMIN
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ZOOMIN) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ZOOMIN)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ZOOMOUT) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ZOOMOUT)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_UP) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_UP)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_DOWN) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_DOWN)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_LEFT) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_LEFT)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_RIGHT) DECLARE_EVENT_CODE(key_event, KEY, CAMERA_RIGHT)
#endif
#ifdef KEY_ATTENDANT_ON
DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_ON) DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_ON)
DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_OFF) DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_OFF)
DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, ATTENDANT_TOGGLE)
DECLARE_EVENT_CODE(key_event, KEY, LIGHTS_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, LIGHTS_TOGGLE)
#endif
#ifdef BTN_DPAD_UP
DECLARE_EVENT_CODE(button_event, BTN, DPAD_UP) DECLARE_EVENT_CODE(button_event, BTN, DPAD_UP)
DECLARE_EVENT_CODE(button_event, BTN, DPAD_DOWN) DECLARE_EVENT_CODE(button_event, BTN, DPAD_DOWN)
DECLARE_EVENT_CODE(button_event, BTN, DPAD_LEFT) DECLARE_EVENT_CODE(button_event, BTN, DPAD_LEFT)
DECLARE_EVENT_CODE(button_event, BTN, DPAD_RIGHT) DECLARE_EVENT_CODE(button_event, BTN, DPAD_RIGHT)
#endif
#ifdef KEY_ALS_TOGGLE
DECLARE_EVENT_CODE(key_event, KEY, ALS_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, ALS_TOGGLE)
#endif
#ifdef KEY_ROTATE_LOCK_TOGGLE
DECLARE_EVENT_CODE(key_event, KEY, ROTATE_LOCK_TOGGLE) DECLARE_EVENT_CODE(key_event, KEY, ROTATE_LOCK_TOGGLE)
#endif
#ifdef KEY_REFRESH_RATE_TOGGLE
DECLARE_EVENT_CODE(key_event, KEY, REFRESH_RATE_TOGGLE)
#endif
#ifdef KEY_BUTTONCONFIG
DECLARE_EVENT_CODE(key_event, KEY, BUTTONCONFIG) DECLARE_EVENT_CODE(key_event, KEY, BUTTONCONFIG)
#endif
#ifdef KEY_TASKMANAGER
DECLARE_EVENT_CODE(key_event, KEY, TASKMANAGER) DECLARE_EVENT_CODE(key_event, KEY, TASKMANAGER)
#endif
#ifdef KEY_JOURNAL
DECLARE_EVENT_CODE(key_event, KEY, JOURNAL) DECLARE_EVENT_CODE(key_event, KEY, JOURNAL)
#endif
#ifdef KEY_CONTROLPANEL
DECLARE_EVENT_CODE(key_event, KEY, CONTROLPANEL) DECLARE_EVENT_CODE(key_event, KEY, CONTROLPANEL)
#endif
#ifdef KEY_APPSELECT
DECLARE_EVENT_CODE(key_event, KEY, APPSELECT) DECLARE_EVENT_CODE(key_event, KEY, APPSELECT)
#endif
#ifdef KEY_SCREENSAVER
DECLARE_EVENT_CODE(key_event, KEY, SCREENSAVER) DECLARE_EVENT_CODE(key_event, KEY, SCREENSAVER)
#endif
#ifdef KEY_VOICECOMMAND
DECLARE_EVENT_CODE(key_event, KEY, VOICECOMMAND) DECLARE_EVENT_CODE(key_event, KEY, VOICECOMMAND)
#endif
#ifdef KEY_ASSISTANT
DECLARE_EVENT_CODE(key_event, KEY, ASSISTANT) DECLARE_EVENT_CODE(key_event, KEY, ASSISTANT)
#endif
#ifdef KEY_EMOJI_PICKER
DECLARE_EVENT_CODE(key_event, KEY, EMOJI_PICKER)
#endif
#ifdef KEY_KBD_LAYOUT_NEXT
DECLARE_EVENT_CODE(key_event, KEY, KBD_LAYOUT_NEXT) DECLARE_EVENT_CODE(key_event, KEY, KBD_LAYOUT_NEXT)
#endif
#ifdef KEY_DICTATE
DECLARE_EVENT_CODE(key_event, KEY, DICTATE)
#endif
#ifdef KEY_CAMERA_ACCESS_ENABLE
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ACCESS_ENABLE)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ACCESS_DISABLE)
DECLARE_EVENT_CODE(key_event, KEY, CAMERA_ACCESS_TOGGLE)
#endif
#ifdef KEY_BRIGHTNESS_MIN
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_MIN) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_MIN)
#endif
#ifdef KEY_BRIGHTNESS_MAX
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_MAX) DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_MAX)
#endif
#ifdef KEY_KBDINPUTASSIST_PREV
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_PREV) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_PREV)
#endif
#ifdef KEY_KBDINPUTASSIST_NEXT
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_NEXT) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_NEXT)
#endif
#ifdef KEY_KBDINPUTASSIST_PREVGROUP
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_PREVGROUP) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_PREVGROUP)
#endif
#ifdef KEY_KBDINPUTASSIST_NEXTGROUP
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_NEXTGROUP) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_NEXTGROUP)
#endif
#ifdef KEY_KBDINPUTASSIST_ACCEPT
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_ACCEPT) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_ACCEPT)
#endif
#ifdef KEY_KBDINPUTASSIST_CANCEL
DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_CANCEL) DECLARE_EVENT_CODE(key_event, KEY, KBDINPUTASSIST_CANCEL)
#endif
#ifdef KEY_RIGHT_UP
DECLARE_EVENT_CODE(key_event, KEY, RIGHT_UP) DECLARE_EVENT_CODE(key_event, KEY, RIGHT_UP)
DECLARE_EVENT_CODE(key_event, KEY, RIGHT_DOWN) DECLARE_EVENT_CODE(key_event, KEY, RIGHT_DOWN)
DECLARE_EVENT_CODE(key_event, KEY, LEFT_UP) DECLARE_EVENT_CODE(key_event, KEY, LEFT_UP)
DECLARE_EVENT_CODE(key_event, KEY, LEFT_DOWN) DECLARE_EVENT_CODE(key_event, KEY, LEFT_DOWN)
#endif
DECLARE_EVENT_CODE(key_event, KEY, ROOT_MENU) #ifdef KEY_NUMERIC_11
DECLARE_EVENT_CODE(key_event, KEY, MEDIA_TOP_MENU)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_11) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_11)
DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_12) DECLARE_EVENT_CODE(key_event, KEY, NUMERIC_12)
#endif
#ifdef KEY_ROOT_MENU
DECLARE_EVENT_CODE(key_event, KEY, ROOT_MENU)
DECLARE_EVENT_CODE(key_event, KEY, MEDIA_TOP_MENU)
DECLARE_EVENT_CODE(key_event, KEY, AUDIO_DESC) DECLARE_EVENT_CODE(key_event, KEY, AUDIO_DESC)
DECLARE_EVENT_CODE(key_event, KEY, 3D_MODE) DECLARE_EVENT_CODE(key_event, KEY, 3D_MODE)
DECLARE_EVENT_CODE(key_event, KEY, NEXT_FAVORITE) DECLARE_EVENT_CODE(key_event, KEY, NEXT_FAVORITE)
@ -592,9 +734,92 @@ DECLARE_EVENT_CODE(key_event, KEY, VOD)
DECLARE_EVENT_CODE(key_event, KEY, UNMUTE) DECLARE_EVENT_CODE(key_event, KEY, UNMUTE)
DECLARE_EVENT_CODE(key_event, KEY, FASTREVERSE) DECLARE_EVENT_CODE(key_event, KEY, FASTREVERSE)
DECLARE_EVENT_CODE(key_event, KEY, SLOWREVERSE) DECLARE_EVENT_CODE(key_event, KEY, SLOWREVERSE)
#endif
#ifdef KEY_DATA
DECLARE_EVENT_CODE(key_event, KEY, DATA) DECLARE_EVENT_CODE(key_event, KEY, DATA)
#endif
#ifdef KEY_ONSCREEN_KEYBOARD
DECLARE_EVENT_CODE(key_event, KEY, ONSCREEN_KEYBOARD) DECLARE_EVENT_CODE(key_event, KEY, ONSCREEN_KEYBOARD)
#endif
#ifdef KEY_PRIVACY_SCREEN_TOGGLE
DECLARE_EVENT_CODE(key_event, KEY, PRIVACY_SCREEN_TOGGLE)
#endif
#ifdef KEY_SELECTIVE_SCREENSHOT
DECLARE_EVENT_CODE(key_event, KEY, SELECTIVE_SCREENSHOT)
#endif
#ifdef KEY_NEXT_ELEMENT
DECLARE_EVENT_CODE(key_event, KEY, NEXT_ELEMENT)
DECLARE_EVENT_CODE(key_event, KEY, PREVIOUS_ELEMENT)
DECLARE_EVENT_CODE(key_event, KEY, AUTOPILOT_ENGAGE_TOGGLE)
DECLARE_EVENT_CODE(key_event, KEY, MARK_WAYPOINT)
DECLARE_EVENT_CODE(key_event, KEY, SOS)
DECLARE_EVENT_CODE(key_event, KEY, NAV_CHART)
DECLARE_EVENT_CODE(key_event, KEY, FISHING_CHART)
DECLARE_EVENT_CODE(key_event, KEY, SINGLE_RANGE_RADAR)
DECLARE_EVENT_CODE(key_event, KEY, DUAL_RANGE_RADAR)
DECLARE_EVENT_CODE(key_event, KEY, RADAR_OVERLAY)
DECLARE_EVENT_CODE(key_event, KEY, TRADITIONAL_SONAR)
DECLARE_EVENT_CODE(key_event, KEY, CLEARVU_SONAR)
DECLARE_EVENT_CODE(key_event, KEY, SIDEVU_SONAR)
DECLARE_EVENT_CODE(key_event, KEY, NAV_INFO)
DECLARE_EVENT_CODE(key_event, KEY, BRIGHTNESS_MENU)
#endif
#ifdef KEY_MACRO1
DECLARE_EVENT_CODE(key_event, KEY, MACRO1)
DECLARE_EVENT_CODE(key_event, KEY, MACRO2)
DECLARE_EVENT_CODE(key_event, KEY, MACRO3)
DECLARE_EVENT_CODE(key_event, KEY, MACRO4)
DECLARE_EVENT_CODE(key_event, KEY, MACRO5)
DECLARE_EVENT_CODE(key_event, KEY, MACRO6)
DECLARE_EVENT_CODE(key_event, KEY, MACRO7)
DECLARE_EVENT_CODE(key_event, KEY, MACRO8)
DECLARE_EVENT_CODE(key_event, KEY, MACRO9)
DECLARE_EVENT_CODE(key_event, KEY, MACRO10)
DECLARE_EVENT_CODE(key_event, KEY, MACRO11)
DECLARE_EVENT_CODE(key_event, KEY, MACRO12)
DECLARE_EVENT_CODE(key_event, KEY, MACRO13)
DECLARE_EVENT_CODE(key_event, KEY, MACRO14)
DECLARE_EVENT_CODE(key_event, KEY, MACRO15)
DECLARE_EVENT_CODE(key_event, KEY, MACRO16)
DECLARE_EVENT_CODE(key_event, KEY, MACRO17)
DECLARE_EVENT_CODE(key_event, KEY, MACRO18)
DECLARE_EVENT_CODE(key_event, KEY, MACRO19)
DECLARE_EVENT_CODE(key_event, KEY, MACRO20)
DECLARE_EVENT_CODE(key_event, KEY, MACRO21)
DECLARE_EVENT_CODE(key_event, KEY, MACRO22)
DECLARE_EVENT_CODE(key_event, KEY, MACRO23)
DECLARE_EVENT_CODE(key_event, KEY, MACRO24)
DECLARE_EVENT_CODE(key_event, KEY, MACRO25)
DECLARE_EVENT_CODE(key_event, KEY, MACRO26)
DECLARE_EVENT_CODE(key_event, KEY, MACRO27)
DECLARE_EVENT_CODE(key_event, KEY, MACRO28)
DECLARE_EVENT_CODE(key_event, KEY, MACRO29)
DECLARE_EVENT_CODE(key_event, KEY, MACRO30)
#endif
#ifdef KEY_MACRO_RECORD_START
DECLARE_EVENT_CODE(key_event, KEY, MACRO_RECORD_START)
DECLARE_EVENT_CODE(key_event, KEY, MACRO_RECORD_STOP)
DECLARE_EVENT_CODE(key_event, KEY, MACRO_PRESET_CYCLE)
DECLARE_EVENT_CODE(key_event, KEY, MACRO_PRESET1)
DECLARE_EVENT_CODE(key_event, KEY, MACRO_PRESET2)
DECLARE_EVENT_CODE(key_event, KEY, MACRO_PRESET3)
#endif
#ifdef KEY_KBD_LCD_MENU1
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU1)
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU2)
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU2)
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU3)
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU4)
DECLARE_EVENT_CODE(key_event, KEY, KBD_LCD_MENU5)
#endif
#ifdef BTN_TRIGGER_HAPPY
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY)
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY1) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY1)
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY2) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY2)
@ -636,6 +861,7 @@ DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY37)
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY38) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY38)
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY39) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY39)
DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY40) DECLARE_EVENT_CODE(button_event, BTN, TRIGGER_HAPPY40)
#endif
DECLARE_EVENT_CODE(key_event, KEY, MIN_INTERESTING) DECLARE_EVENT_CODE(key_event, KEY, MIN_INTERESTING)
DECLARE_EVENT_CODE(key_event, KEY, MAX) DECLARE_EVENT_CODE(key_event, KEY, MAX)
@ -652,8 +878,10 @@ DECLARE_EVENT_CODE(relative_axis, REL, DIAL)
DECLARE_EVENT_CODE(relative_axis, REL, WHEEL) DECLARE_EVENT_CODE(relative_axis, REL, WHEEL)
DECLARE_EVENT_CODE(relative_axis, REL, MISC) DECLARE_EVENT_CODE(relative_axis, REL, MISC)
DECLARE_EVENT_CODE(relative_axis, REL, RESERVED) DECLARE_EVENT_CODE(relative_axis, REL, RESERVED)
#ifdef REL_WHEEL_HI_RES
DECLARE_EVENT_CODE(relative_axis, REL, WHEEL_HI_RES) DECLARE_EVENT_CODE(relative_axis, REL, WHEEL_HI_RES)
DECLARE_EVENT_CODE(relative_axis, REL, HWHEEL_HI_RES) DECLARE_EVENT_CODE(relative_axis, REL, HWHEEL_HI_RES)
#endif
DECLARE_EVENT_CODE(relative_axis, REL, MAX) DECLARE_EVENT_CODE(relative_axis, REL, MAX)
DECLARE_EVENT_CODE(relative_axis, REL, CNT) DECLARE_EVENT_CODE(relative_axis, REL, CNT)
@ -688,7 +916,10 @@ DECLARE_EVENT_CODE(absolute_axis, ABS, MISC)
DECLARE_EVENT_CODE(absolute_axis, ABS, RESERVED) DECLARE_EVENT_CODE(absolute_axis, ABS, RESERVED)
#ifdef ABS_MT_SLOT
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_SLOT) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_SLOT)
#endif
#ifdef ABS_MT_BLOB_ID
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOUCH_MAJOR) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOUCH_MAJOR)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOUCH_MINOR) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOUCH_MINOR)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_WIDTH_MAJOR) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_WIDTH_MAJOR)
@ -698,11 +929,18 @@ DECLARE_EVENT_CODE(absolute_axis, ABS, MT_POSITION_X)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_POSITION_Y) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_POSITION_Y)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_TYPE) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_TYPE)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_BLOB_ID) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_BLOB_ID)
#endif
#ifdef ABS_MT_TRACKING_ID
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TRACKING_ID) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TRACKING_ID)
#endif
#ifdef ABS_MT_PRESSURE
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_PRESSURE) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_PRESSURE)
#endif
#ifdef ABS_MT_TOOL_X
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_DISTANCE) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_DISTANCE)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_X) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_X)
DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_Y) DECLARE_EVENT_CODE(absolute_axis, ABS, MT_TOOL_Y)
#endif
DECLARE_EVENT_CODE(absolute_axis, ABS, MAX) DECLARE_EVENT_CODE(absolute_axis, ABS, MAX)
DECLARE_EVENT_CODE(absolute_axis, ABS, CNT) DECLARE_EVENT_CODE(absolute_axis, ABS, CNT)
@ -710,21 +948,45 @@ DECLARE_EVENT_CODE(absolute_axis, ABS, CNT)
DECLARE_EVENT_CODE(switch_event, SW, LID) DECLARE_EVENT_CODE(switch_event, SW, LID)
DECLARE_EVENT_CODE(switch_event, SW, TABLET_MODE) DECLARE_EVENT_CODE(switch_event, SW, TABLET_MODE)
DECLARE_EVENT_CODE(switch_event, SW, HEADPHONE_INSERT) DECLARE_EVENT_CODE(switch_event, SW, HEADPHONE_INSERT)
#ifdef SW_RFKILL_ALL
DECLARE_EVENT_CODE(switch_event, SW, RFKILL_ALL) DECLARE_EVENT_CODE(switch_event, SW, RFKILL_ALL)
#endif
DECLARE_EVENT_CODE(switch_event, SW, RADIO) DECLARE_EVENT_CODE(switch_event, SW, RADIO)
#ifdef SW_MICROPHONE_INSERT
DECLARE_EVENT_CODE(switch_event, SW, MICROPHONE_INSERT) DECLARE_EVENT_CODE(switch_event, SW, MICROPHONE_INSERT)
#endif
#ifdef SW_DOCK
DECLARE_EVENT_CODE(switch_event, SW, DOCK) DECLARE_EVENT_CODE(switch_event, SW, DOCK)
#endif
#ifdef SW_LINEOUT_INSERT
DECLARE_EVENT_CODE(switch_event, SW, LINEOUT_INSERT) DECLARE_EVENT_CODE(switch_event, SW, LINEOUT_INSERT)
#endif
#ifdef SW_JACK_PHYSICAL_INSERT
DECLARE_EVENT_CODE(switch_event, SW, JACK_PHYSICAL_INSERT) DECLARE_EVENT_CODE(switch_event, SW, JACK_PHYSICAL_INSERT)
#endif
#ifdef SW_VIDEOOUT_INSERT
DECLARE_EVENT_CODE(switch_event, SW, VIDEOOUT_INSERT) DECLARE_EVENT_CODE(switch_event, SW, VIDEOOUT_INSERT)
#endif
#ifdef SW_CAMERA_LENS_COVER
DECLARE_EVENT_CODE(switch_event, SW, CAMERA_LENS_COVER) DECLARE_EVENT_CODE(switch_event, SW, CAMERA_LENS_COVER)
DECLARE_EVENT_CODE(switch_event, SW, KEYPAD_SLIDE) DECLARE_EVENT_CODE(switch_event, SW, KEYPAD_SLIDE)
DECLARE_EVENT_CODE(switch_event, SW, FRONT_PROXIMITY) DECLARE_EVENT_CODE(switch_event, SW, FRONT_PROXIMITY)
#endif
#ifdef SW_ROTATE_LOCK
DECLARE_EVENT_CODE(switch_event, SW, ROTATE_LOCK) DECLARE_EVENT_CODE(switch_event, SW, ROTATE_LOCK)
#endif
#ifdef SW_LINEIN_INSERT
DECLARE_EVENT_CODE(switch_event, SW, LINEIN_INSERT) DECLARE_EVENT_CODE(switch_event, SW, LINEIN_INSERT)
#endif
#ifdef SW_MUTE_DEVICE
DECLARE_EVENT_CODE(switch_event, SW, MUTE_DEVICE) DECLARE_EVENT_CODE(switch_event, SW, MUTE_DEVICE)
#endif
#ifdef SW_PEN_INSERTED
DECLARE_EVENT_CODE(switch_event, SW, PEN_INSERTED) DECLARE_EVENT_CODE(switch_event, SW, PEN_INSERTED)
#endif
#ifdef SW_MACHINE_COVER
DECLARE_EVENT_CODE(switch_event, SW, MACHINE_COVER) DECLARE_EVENT_CODE(switch_event, SW, MACHINE_COVER)
#endif
DECLARE_EVENT_CODE(switch_event, SW, MAX) DECLARE_EVENT_CODE(switch_event, SW, MAX)
DECLARE_EVENT_CODE(switch_event, SW, CNT) DECLARE_EVENT_CODE(switch_event, SW, CNT)
@ -733,7 +995,9 @@ DECLARE_EVENT_CODE(misc_event, MSC, PULSELED)
DECLARE_EVENT_CODE(misc_event, MSC, GESTURE) DECLARE_EVENT_CODE(misc_event, MSC, GESTURE)
DECLARE_EVENT_CODE(misc_event, MSC, RAW) DECLARE_EVENT_CODE(misc_event, MSC, RAW)
DECLARE_EVENT_CODE(misc_event, MSC, SCAN) DECLARE_EVENT_CODE(misc_event, MSC, SCAN)
#ifdef MSC_TIMESTAMP
DECLARE_EVENT_CODE(misc_event, MSC, TIMESTAMP) DECLARE_EVENT_CODE(misc_event, MSC, TIMESTAMP)
#endif
DECLARE_EVENT_CODE(misc_event, MSC, MAX) DECLARE_EVENT_CODE(misc_event, MSC, MAX)
DECLARE_EVENT_CODE(misc_event, MSC, CNT) DECLARE_EVENT_CODE(misc_event, MSC, CNT)
@ -746,8 +1010,12 @@ DECLARE_EVENT_CODE(led_event, LED, SLEEP)
DECLARE_EVENT_CODE(led_event, LED, SUSPEND) DECLARE_EVENT_CODE(led_event, LED, SUSPEND)
DECLARE_EVENT_CODE(led_event, LED, MUTE) DECLARE_EVENT_CODE(led_event, LED, MUTE)
DECLARE_EVENT_CODE(led_event, LED, MISC) DECLARE_EVENT_CODE(led_event, LED, MISC)
#ifdef LED_MAIL
DECLARE_EVENT_CODE(led_event, LED, MAIL) DECLARE_EVENT_CODE(led_event, LED, MAIL)
#endif
#ifdef LED_CHARGING
DECLARE_EVENT_CODE(led_event, LED, CHARGING) DECLARE_EVENT_CODE(led_event, LED, CHARGING)
#endif
DECLARE_EVENT_CODE(led_event, LED, MAX) DECLARE_EVENT_CODE(led_event, LED, MAX)
DECLARE_EVENT_CODE(led_event, LED, CNT) DECLARE_EVENT_CODE(led_event, LED, CNT)