fallback: expand the range of valid keys 00/273300/1 tizen_6.5
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 6 Oct 2020 23:36:38 +0000 (09:36 +1000)
committerduna.oh <duna.oh@samsung.com>
Mon, 4 Apr 2022 00:46:10 +0000 (09:46 +0900)
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.

Change-Id: I2109fc9cec1e88af12a9b3b1c2ceb908781efb40
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-fallback.h

index fc8388c179e9cad4ffe21790200f001a431f37e3..651397e34ce2d055cbdba57a9b41314ca47291a3 100644 (file)
@@ -204,7 +204,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;