tablet: use our absinfo_x/y struct instead of the libevdev one

device->abs.absinfo_x/y points to the x/y axis we want to use and
that axis is used in all the evdev helper function. For consistency
use that one here too.

This is for consistency only and has no effect on tablet devices, the
only time this isn't ABS_X/Y is on multitouch devices where that points to
ABS_MT_POSITION_X/Y.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1013>
This commit is contained in:
Peter Hutterer 2024-06-14 10:36:59 +10:00
parent cfbdca5953
commit 9735229dee

View file

@ -455,7 +455,7 @@ tablet_update_xy(struct tablet_dispatch *tablet,
if (bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_X) ||
bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_Y)) {
absinfo = libevdev_get_abs_info(device->evdev, ABS_X);
absinfo = device->abs.absinfo_x;
if (tablet->rotation.rotate)
value = invert_axis(absinfo);
@ -464,7 +464,7 @@ tablet_update_xy(struct tablet_dispatch *tablet,
tablet->axes.point.x = value;
absinfo = libevdev_get_abs_info(device->evdev, ABS_Y);
absinfo = device->abs.absinfo_y;
if (tablet->rotation.rotate)
value = invert_axis(absinfo);