diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 10:39:49 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 10:39:49 +0100 |
commit | 3e1925fd0009fcc871e0a9d40dd9a9edc6419669 (patch) | |
tree | 2539c4550bdb32ecb2895d944ac27bf1e904a4a6 /scene/gui/subviewport_container.h | |
parent | bd1df0f2e3473710aed9dbc48268fc15db7deac7 (diff) | |
parent | 56ddf89fac84cdf12b571866790b492d2f6cc072 (diff) | |
download | redot-engine-3e1925fd0009fcc871e0a9d40dd9a9edc6419669.tar.gz |
Merge pull request #58334 from Sauermann/fix-to-gui-or-not-to-gui
Fix SubViewportContainer processing Events before other Control-Nodes
Diffstat (limited to 'scene/gui/subviewport_container.h')
-rw-r--r-- | scene/gui/subviewport_container.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/subviewport_container.h b/scene/gui/subviewport_container.h index d918c4a615..d3236b0c4e 100644 --- a/scene/gui/subviewport_container.h +++ b/scene/gui/subviewport_container.h @@ -39,6 +39,8 @@ class SubViewportContainer : public Container { bool stretch = false; int shrink = 1; void _notify_viewports(int p_notification); + bool _is_propagated_in_gui_input(const Ref<InputEvent> &p_event); + void _send_event_to_viewports(const Ref<InputEvent> &p_event); protected: void _notification(int p_what); @@ -52,6 +54,7 @@ public: bool is_stretch_enabled() const; virtual void input(const Ref<InputEvent> &p_event) override; + virtual void gui_input(const Ref<InputEvent> &p_event) override; virtual void unhandled_input(const Ref<InputEvent> &p_event) override; void set_stretch_shrink(int p_shrink); int get_stretch_shrink() const; |