mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 12:40:05 +01:00
fallback: expand the range of valid keys
The kernel has since added a bunch of keys in the range between KEY_ONSCREEN_KEYBOARD and BTN_TRIGGER_HAPPY. Let's designate those as keys so we handle them correctly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
442b7b4e34
commit
a80fe32503
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ get_key_type(uint16_t code)
|
|||
return KEY_TYPE_KEY;
|
||||
if (code >= BTN_DPAD_UP && code <= BTN_DPAD_RIGHT)
|
||||
return KEY_TYPE_BUTTON;
|
||||
if (code >= KEY_ALS_TOGGLE && code <= KEY_ONSCREEN_KEYBOARD)
|
||||
if (code >= KEY_ALS_TOGGLE && code < BTN_TRIGGER_HAPPY)
|
||||
return KEY_TYPE_KEY;
|
||||
if (code >= BTN_TRIGGER_HAPPY && code <= BTN_TRIGGER_HAPPY40)
|
||||
return KEY_TYPE_BUTTON;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue