From f8afe1af5ecc4247edbd0effbde25183b00f362c 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] 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 b0bc173ad..ce8435c24 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -816,7 +816,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.