summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-10-07 09:36:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-10-07 09:49:56 +1000
commit2b632541db655634eacb424da11da626e0f30b3b (patch)
treeda5bcad6f9de6eaa91a31e4acc93f71bd5355123
parentc6ab679fef3c8eb96dee4e9d9f9bce7f30847232 (diff)
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> (cherry picked from commit a80fe325032053792c7ee14d77f76cd41c4c47f7)
-rw-r--r--src/evdev-fallback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-fallback.h b/src/evdev-fallback.h
index 0f75827e..d1223ba5 100644
--- a/src/evdev-fallback.h
+++ b/src/evdev-fallback.h
@@ -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;