mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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:
parent
df12572f29
commit
f20b2c7632
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue