Skip to content

Commit

Permalink
[evdev] Add event names to lookup tables. Fixes JB#33666
Browse files Browse the repository at this point in the history
The evdev trace utility is reporting unknown events.

Scan various linux/input.h versions and add new events to lookup tables.
  • Loading branch information
spiiroin committed Dec 9, 2015
1 parent b753da8 commit b8c6e40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions evdev.inc
Expand Up @@ -494,6 +494,15 @@ static const char * const lut_key[] =
[0x0222] = "BTN_DPAD_LEFT",
[0x0223] = "BTN_DPAD_RIGHT",
[0x0230] = "KEY_ALS_TOGGLE",
[0x0240] = "KEY_BUTTONCONFIG",
[0x0241] = "KEY_TASKMANAGER",
[0x0242] = "KEY_JOURNAL",
[0x0243] = "KEY_CONTROLPANEL",
[0x0244] = "KEY_APPSELECT",
[0x0245] = "KEY_SCREENSAVER",
[0x0246] = "KEY_VOICECOMMAND",
[0x0250] = "KEY_BRIGHTNESS_MIN",
[0x0251] = "KEY_BRIGHTNESS_MAX",
[0x02c0] = "BTN_TRIGGER_HAPPY",
[0x02c1] = "BTN_TRIGGER_HAPPY2",
[0x02c2] = "BTN_TRIGGER_HAPPY3",
Expand Down Expand Up @@ -614,6 +623,8 @@ static const char * const lut_sw[] =
[0x000e] = "SW_HPHL_OVERCURRENT",
[0x000f] = "SW_HPHR_OVERCURRENT",
[0x0010] = "SW_UNSUPPORT_INSERT",
[0x0011] = "SW_MICROPHONE2_INSERT",
[0x0012] = "SW_MUTE_DEVICE",
};
static const char * const lut_msc[] =
{
Expand Down

0 comments on commit b8c6e40

Please sign in to comment.