diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-23 23:39:46 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-23 23:39:46 +0200 |
commit | 5478f9b842431358a0a3b974da9ea8cb109d7001 (patch) | |
tree | 13f04612f7b291a44a15d7dd123a8954d579614d /platform | |
parent | 5784bf1be0cdf409a115556bf6c54f78f3d454ef (diff) |
[macOS] Fix stylus tilt Y direction.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/macos/godot_content_view.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/godot_content_view.mm b/platform/macos/godot_content_view.mm index cb70a5db86..0cefcd1ae1 100644 --- a/platform/macos/godot_content_view.mm +++ b/platform/macos/godot_content_view.mm @@ -440,7 +440,7 @@ 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(last_pen_inverted); } else if (subtype == NSEventSubtypeTabletProximity) { // Check if using the eraser end of pen only on proximity event. |