linux: Detect drawing tablets correctly

See discussion at:
https://patchwork.kernel.org/project/linux-input/patch/20220407115406.115112-1-hadess@hadess.net/
This commit is contained in:
Bastien Nocera 2022-04-20 10:50:19 +02:00
parent d0ebbe32bb
commit f961ec6154

View file

@ -1073,6 +1073,9 @@ up_device_supply_guess_type (GUdevDevice *native,
type = UP_DEVICE_KIND_MOUSE;
} else if (g_udev_device_get_property_as_boolean (sibling, "ID_INPUT_JOYSTICK")) {
type = UP_DEVICE_KIND_GAMING_INPUT;
} else if (g_udev_device_get_property_as_boolean (sibling, "ID_INPUT_TABLET") ||
g_udev_device_get_property_as_boolean (sibling, "ID_INPUT_TABLET_PAD")) {
type = UP_DEVICE_KIND_TABLET;
} else {
type = UP_DEVICE_KIND_KEYBOARD;
}