mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 09:40:31 +01:00
xquartz: fix inverted tablet pen Y tilt on macOS
On macOS, the y tilt behavior is inverted; an increase in the tilt value corresponds to tilting the device away from the user. see https://chromium-review.googlesource.com/c/chromium/src/+/2348544 see0f128fd7c5/src/plugins/platforms/cocoa/qnsview_tablet.mm (L63)Fixes #792 Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1779> (cherry picked from commit3562298068)
This commit is contained in:
parent
a49a8a3cf9
commit
f27942078f
1 changed files with 4 additions and 4 deletions
|
|
@ -1103,7 +1103,7 @@ handle_mouse:
|
|||
else
|
||||
DarwinSendTabletEvents(darwinTabletCurrent, ProximityOut, 0,
|
||||
location.x, location.y, pressure,
|
||||
tilt.x, tilt.y);
|
||||
tilt.x, -tilt.y);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1117,7 +1117,7 @@ handle_mouse:
|
|||
if (needsProximityIn) {
|
||||
DarwinSendTabletEvents(darwinTabletCurrent, ProximityIn, 0,
|
||||
location.x, location.y, pressure,
|
||||
tilt.x, tilt.y);
|
||||
tilt.x, -tilt.y);
|
||||
|
||||
needsProximityIn = NO;
|
||||
}
|
||||
|
|
@ -1159,7 +1159,7 @@ handle_mouse:
|
|||
} else {
|
||||
DarwinSendTabletEvents(pDev, ev_type, ev_button,
|
||||
location.x, location.y, pressure,
|
||||
tilt.x, tilt.y);
|
||||
tilt.x, -tilt.y);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -1186,7 +1186,7 @@ handle_mouse:
|
|||
else
|
||||
DarwinSendTabletEvents(darwinTabletCurrent, ProximityOut, 0,
|
||||
location.x, location.y, pressure,
|
||||
tilt.x, tilt.y);
|
||||
tilt.x, -tilt.y);
|
||||
break;
|
||||
|
||||
case NSScrollWheel:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue