소스 검색

Merge pull request #38034 from punto-/punto-/vibration_info_protected

makes VibrationInfo protected
Rémi Verschelde 5 년 전
부모
커밋
10273e9de6
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      core/input/input.h

+ 9 - 9
core/input/input.h

@@ -127,15 +127,6 @@ private:
 
 	int mouse_from_touch_index;
 
-	struct VibrationInfo {
-		float weak_magnitude;
-		float strong_magnitude;
-		float duration; // Duration in seconds
-		uint64_t timestamp;
-	};
-
-	Map<int, VibrationInfo> joy_vibration;
-
 	struct SpeedTrack {
 
 		uint64_t last_tick;
@@ -232,6 +223,15 @@ private:
 	EventDispatchFunc event_dispatch_function;
 
 protected:
+	struct VibrationInfo {
+		float weak_magnitude;
+		float strong_magnitude;
+		float duration; // Duration in seconds
+		uint64_t timestamp;
+	};
+
+	Map<int, VibrationInfo> joy_vibration;
+
 	static void _bind_methods();
 
 public: