From 41a7d070957d7cbe24f1f0daa36e7d5f5318c1e5 Mon Sep 17 00:00:00 2001 From: punto- Date: Mon, 20 Apr 2020 03:06:03 -0300 Subject: Input: make VibrationInfo protected to allow implementors to use it --- core/input/input.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core') diff --git a/core/input/input.h b/core/input/input.h index 477de1e879..2e136dbf02 100644 --- a/core/input/input.h +++ b/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 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 joy_vibration; + static void _bind_methods(); public: -- cgit v1.2.3