Fix stylus tilt Y direction.

(cherry picked from commit 5478f9b842431358a0a3b974da9ea8cb109d7001)
This commit is contained in:
bruvzg 2022-12-23 23:39:46 +02:00 committed by Relintai
parent f2682927f0
commit f8afe1af5e

View File

@ -816,7 +816,7 @@ static void _mouseDownEvent(NSEvent *event, int index, int mask, bool pressed) {
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(OS_OSX::singleton->last_pen_inverted); mm->set_pen_inverted(OS_OSX::singleton->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.