|
@@ -65,15 +65,6 @@ class InputDefault : public Input {
|
|
|
|
|
|
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;
|
|
@@ -186,6 +177,16 @@ private:
|
|
|
List<Ref<InputEvent> > accumulated_events;
|
|
|
bool use_accumulated_input;
|
|
|
|
|
|
+protected:
|
|
|
+ struct VibrationInfo {
|
|
|
+ float weak_magnitude;
|
|
|
+ float strong_magnitude;
|
|
|
+ float duration; // Duration in seconds
|
|
|
+ uint64_t timestamp;
|
|
|
+ };
|
|
|
+
|
|
|
+ Map<int, VibrationInfo> joy_vibration;
|
|
|
+
|
|
|
public:
|
|
|
virtual bool is_key_pressed(int p_scancode) const;
|
|
|
virtual bool is_mouse_button_pressed(int p_button) const;
|