diff --git a/src/core/linux/SDL_evdev_capabilities.c b/src/core/linux/SDL_evdev_capabilities.c index 865abf4fe..6c146ab10 100644 --- a/src/core/linux/SDL_evdev_capabilities.c +++ b/src/core/linux/SDL_evdev_capabilities.c @@ -70,7 +70,8 @@ SDL_EVDEV_GuessDeviceClass(const unsigned long bitmask_props[NBITS(INPUT_PROP_MA /* We treat buttonpads as equivalent to touchpads */ if (test_bit(INPUT_PROP_TOPBUTTONPAD, bitmask_props) || - test_bit(INPUT_PROP_BUTTONPAD, bitmask_props)) { + test_bit(INPUT_PROP_BUTTONPAD, bitmask_props) || + test_bit(INPUT_PROP_SEMI_MT, bitmask_props)) { return SDL_UDEV_DEVICE_TOUCHPAD; } diff --git a/src/core/linux/SDL_evdev_capabilities.h b/src/core/linux/SDL_evdev_capabilities.h index 49df8da79..ae09b68c3 100644 --- a/src/core/linux/SDL_evdev_capabilities.h +++ b/src/core/linux/SDL_evdev_capabilities.h @@ -28,6 +28,9 @@ #include +#ifndef INPUT_PROP_SEMI_MT +#define INPUT_PROP_SEMI_MT 0x03 +#endif #ifndef INPUT_PROP_TOPBUTTONPAD #define INPUT_PROP_TOPBUTTONPAD 0x04 #endif