mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 22:10:25 +01:00
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:
parent
cfbdca5953
commit
9735229dee
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue