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
parent 58140b8336
commit 3ec0d8c6bb
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -696,7 +696,7 @@ extending outward from the snapped edge.
*<tablet rotate="" />* [0|90|180|270]
The tablet orientation can be changed in 90 degree steps. Default is
no rotation (0). Rotation will be applied after applying tablet area
no rotation (0). Rotation will be applied before applying tablet area
transformation.
See also *calibrationMatrix* in libinput section below for advanced

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