macos: Fix inverted pen Y tilt on macOS
- Negate tilt.y in Cocoa pen handling to correct inverted Y tilt axis
- see 0f128fd7c5/src/plugins/platforms/cocoa/qnsview_tablet.mm (L63)
- see https://source.chromium.org/chromium/chromium/src/+/main:components/input/web_input_event_builders_mac.mm;drc=0af5ffa1e4cc4cc4f818725f8fee93ec57855e4b;l=421
This commit is contained in:
parent
0ec10c6169
commit
40072ff1ab
@ -1088,7 +1088,7 @@ fill_button_event (GdkWindow *window,
|
||||
axes[1] = y;
|
||||
axes[2] = [nsevent pressure];
|
||||
axes[3] = [nsevent tilt].x;
|
||||
axes[4] = [nsevent tilt].y;
|
||||
axes[4] = -[nsevent tilt].y;
|
||||
}
|
||||
|
||||
event->any.type = type;
|
||||
@ -1131,7 +1131,7 @@ fill_motion_event (GdkWindow *window,
|
||||
axes[1] = y;
|
||||
axes[2] = [nsevent pressure];
|
||||
axes[3] = [nsevent tilt].x;
|
||||
axes[4] = [nsevent tilt].y;
|
||||
axes[4] = -[nsevent tilt].y;
|
||||
}
|
||||
|
||||
event->any.type = GDK_MOTION_NOTIFY;
|
||||
|
Loading…
Reference in New Issue
Block a user