diff options
| author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:34 -0500 |
|---|---|---|
| committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:34 -0500 |
| commit | 194ddfd0c469bf1d554caf62f45a9736333d2c44 (patch) | |
| tree | 44b21cfc81b4da1c2a9dd54cb740e259c3fb1552 /core/input/input.h | |
| parent | e84fae43bed7a7bc992fb276857bcb7140480a54 (diff) | |
| parent | 16524a8a01408480ce2063461c8c042bc4eb3fa8 (diff) | |
| download | redot-engine-194ddfd0c469bf1d554caf62f45a9736333d2c44.tar.gz | |
Merge pull request #97257 from YeldhamDev/guess_godot_is_unity_after_all
Add "Game" editor for better runtime debugging
Diffstat (limited to 'core/input/input.h')
| -rw-r--r-- | core/input/input.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/input/input.h b/core/input/input.h index 95dd623cc0..a189ae7d9a 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -103,6 +103,11 @@ private: Vector2 mouse_pos; int64_t mouse_window = 0; bool legacy_just_pressed_behavior = false; + bool disable_input = false; + + MouseMode mouse_mode = MOUSE_MODE_VISIBLE; + bool mouse_mode_override_enabled = false; + MouseMode mouse_mode_override = MOUSE_MODE_VISIBLE; struct ActionState { uint64_t pressed_physics_frame = UINT64_MAX; @@ -279,6 +284,8 @@ protected: public: void set_mouse_mode(MouseMode p_mode); MouseMode get_mouse_mode() const; + void set_mouse_mode_override_enabled(bool p_enabled); + void set_mouse_mode_override(MouseMode p_mode); #ifdef TOOLS_ENABLED void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override; @@ -380,6 +387,9 @@ public: void set_event_dispatch_function(EventDispatchFunc p_function); + void set_disable_input(bool p_disable); + bool is_input_disabled() const; + Input(); ~Input(); }; |
