From 456cdf84c15c4a9087778a76389c9f0727a552d7 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 23 Dec 2022 23:39:46 +0200 Subject: [PATCH] [macOS] Fix stylus tilt Y direction. (cherry picked from commit 5478f9b842431358a0a3b974da9ea8cb109d7001) --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 17fd0615ab9..9d4c03b983e 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -818,7 +818,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.