summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-23 23:39:46 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-23 23:39:46 +0200
commit5478f9b842431358a0a3b974da9ea8cb109d7001 (patch)
tree13f04612f7b291a44a15d7dd123a8954d579614d /platform
parent5784bf1be0cdf409a115556bf6c54f78f3d454ef (diff)
[macOS] Fix stylus tilt Y direction.
Diffstat (limited to 'platform')
-rw-r--r--platform/macos/godot_content_view.mm2
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.