Преглед изворни кода

[macOS] Fix stylus tilt Y direction.

(cherry picked from commit 5478f9b842431358a0a3b974da9ea8cb109d7001)
bruvzg пре 2 година
родитељ
комит
0c0c009f8d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      platform/osx/os_osx.mm

+ 1 - 1
platform/osx/os_osx.mm

@@ -814,7 +814,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.