input: apply tablet rotation before area transformation

This makes the behavior consistent with auto-rotation
as a result of output mapping.
This commit is contained in:
Jens Peters 2024-08-08 20:01:37 +02:00 committed by Johan Malm
parent df12572f29
commit f20b2c7632
2 changed files with 2 additions and 2 deletions

View file

@ -125,9 +125,9 @@ tablet_get_coords(struct drawing_tablet *tablet, double *x, double *y, double *d
*y = tablet->y;
*dx = tablet->dx;
*dy = tablet->dy;
adjust_for_rotation(rc.tablet.rotation, x, y);
adjust_for_tablet_area(tablet->tablet->width_mm, tablet->tablet->height_mm,
rc.tablet.box, x, y);
adjust_for_rotation(rc.tablet.rotation, x, y);
adjust_for_rotation_relative(rc.tablet.rotation, dx, dy);
adjust_for_motion_sensitivity(rc.tablet_tool.relative_motion_sensitivity, dx, dy);