mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-24 09:00:35 +01:00
evdev: fix rel axis disabling on accelerometers
Copy/paste caused only the abs axes being disabled (REL_X == ABS_X, etc. so the EV_REL bits had no effect). Found-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1453>
This commit is contained in:
parent
2dc491de1f
commit
7d15503b45
1 changed files with 3 additions and 3 deletions
|
|
@ -1810,9 +1810,9 @@ evdev_disable_accelerometer_axes(struct evdev_device *device)
|
|||
libevdev_disable_event_code(evdev, EV_ABS, ABS_Y);
|
||||
libevdev_disable_event_code(evdev, EV_ABS, ABS_Z);
|
||||
|
||||
libevdev_disable_event_code(evdev, EV_ABS, REL_X);
|
||||
libevdev_disable_event_code(evdev, EV_ABS, REL_Y);
|
||||
libevdev_disable_event_code(evdev, EV_ABS, REL_Z);
|
||||
libevdev_disable_event_code(evdev, EV_REL, REL_X);
|
||||
libevdev_disable_event_code(evdev, EV_REL, REL_Y);
|
||||
libevdev_disable_event_code(evdev, EV_REL, REL_Z);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue