[macOS] Fix stylus tilt Y direction.

(cherry picked from commit 5478f9b842)
This commit is contained in:
bruvzg 2022-12-23 23:39:46 +02:00 committed by Rémi Verschelde
parent 6d30f26d25
commit 0c0c009f8d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -814,7 +814,7 @@ static void _mouseDownEvent(NSEvent *event, int index, int mask, bool pressed) {
NSEventSubtype subtype = [event subtype];
if (subtype == NSEventSubtypeTabletPoint) {
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(OS_OSX::singleton->last_pen_inverted);
} else if (subtype == NSEventSubtypeTabletProximity) {
// Check if using the eraser end of pen only on proximity event.