mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-06 09:10:27 +01:00
evdev: Stop looking for pointer buttons when we get to BTN_JOYSTICK
We don't want to mark a touchscreen as a button device just because it exposes the BTN_TOUCH and BTN_TOOL buttons.
This commit is contained in:
parent
ee5f763fc8
commit
5d493ad6f4
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ evdev_handle_device(struct evdev_device *device)
|
|||
break;
|
||||
}
|
||||
}
|
||||
for (i = BTN_MISC; i < KEY_OK; i++) {
|
||||
for (i = BTN_MISC; i < BTN_JOYSTICK; i++) {
|
||||
if (TEST_BIT(key_bits, i)) {
|
||||
device->caps |= EVDEV_BUTTON;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue