diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 15:50:28 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 15:50:28 +0100 |
commit | 8580afdd950c1614a1a009cb1f14b368d8aae43f (patch) | |
tree | 86577d92a831c41b74653550f1880c15fb473831 | |
parent | 5e78f0f782ec09905fe96ab0b2e238947e083496 (diff) | |
parent | 5478f9b842431358a0a3b974da9ea8cb109d7001 (diff) |
Merge pull request #70498 from bruvzg/macos_tilt_fix
[macOS] Fix stylus tilt Y direction.
-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. |