mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 09:58:22 +02:00
evdev: update key type check for new key defines
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0c6b5c045b)
This commit is contained in:
parent
d8a838f965
commit
622e891354
1 changed files with 1 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ get_key_type(uint16_t code)
|
|||
return EVDEV_KEY_TYPE_KEY;
|
||||
if (code >= BTN_DPAD_UP && code <= BTN_DPAD_RIGHT)
|
||||
return EVDEV_KEY_TYPE_BUTTON;
|
||||
if (code >= KEY_ALS_TOGGLE && code <= KEY_KBDINPUTASSIST_CANCEL)
|
||||
if (code >= KEY_ALS_TOGGLE && code <= KEY_ONSCREEN_KEYBOARD)
|
||||
return EVDEV_KEY_TYPE_KEY;
|
||||
if (code >= BTN_TRIGGER_HAPPY && code <= BTN_TRIGGER_HAPPY40)
|
||||
return EVDEV_KEY_TYPE_BUTTON;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue