diff options
Diffstat (limited to 'main/input_default.h')
-rw-r--r-- | main/input_default.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/input_default.h b/main/input_default.h index 75dd1e67f6..79a90cc4a4 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -183,6 +183,9 @@ private: void _parse_input_event_impl(const Ref<InputEvent> &p_event, bool p_is_emulated); + List<Ref<InputEvent> > accumulated_events; + bool use_accumulated_input; + public: virtual bool is_key_pressed(int p_scancode) const; virtual bool is_mouse_button_pressed(int p_button) const; @@ -264,6 +267,11 @@ public: bool is_joy_mapped(int p_device); String get_joy_guid_remapped(int p_device) const; void set_fallback_mapping(String p_guid); + + virtual void accumulate_input_event(const Ref<InputEvent> &p_event); + virtual void flush_accumulated_events(); + virtual void set_use_accumulated_input(bool p_enable); + InputDefault(); }; |