mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 12:18:09 +02:00
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:
parent
d0ebbe32bb
commit
f961ec6154
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue