Merge pull request #70498 from bruvzg/macos_tilt_fix

[macOS] Fix stylus tilt Y direction.
This commit is contained in:
Rémi Verschelde 2023-01-03 15:50:28 +01:00
commit 8580afdd95
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@
NSEventSubtype subtype = [event subtype]; NSEventSubtype subtype = [event subtype];
if (subtype == NSEventSubtypeTabletPoint) { if (subtype == NSEventSubtypeTabletPoint) {
const NSPoint p = [event tilt]; const NSPoint p = [event tilt];
mm->set_tilt(Vector2(p.x, p.y)); mm->set_tilt(Vector2(p.x, -p.y));
mm->set_pen_inverted(last_pen_inverted); mm->set_pen_inverted(last_pen_inverted);
} else if (subtype == NSEventSubtypeTabletProximity) { } else if (subtype == NSEventSubtypeTabletProximity) {
// Check if using the eraser end of pen only on proximity event. // Check if using the eraser end of pen only on proximity event.