소스 검색

Merge pull request #70498 from bruvzg/macos_tilt_fix

[macOS] Fix stylus tilt Y direction.
Rémi Verschelde 2 년 전
부모
커밋
8580afdd95
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/macos/godot_content_view.mm

+ 1 - 1
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.