mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-02 00:30:10 +01:00
evdev: Reject absolute motion if we're not a pointer or a touch device
Some joysticks have certain buttons that acts keyboard keys. As such, we'll reconize them as keyboards but not pointers. In that case, don't send pointer motion events when we get absolute joystick events.
This commit is contained in:
parent
83f3319f18
commit
4004080f27
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ evdev_flush_pending_event(struct evdev_device *device, uint32_t time)
|
|||
li_fixed_from_int(cx),
|
||||
li_fixed_from_int(cy),
|
||||
LIBINPUT_TOUCH_TYPE_DOWN);
|
||||
} else {
|
||||
} else if (device->seat_caps & EVDEV_DEVICE_POINTER) {
|
||||
pointer_notify_motion_absolute(base,
|
||||
time,
|
||||
li_fixed_from_int(cx),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue