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>
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);
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);