diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-03-31 11:53:47 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-03-17 19:22:24 +0100 |
commit | 8836f2160ab3a501ca35bc4ac753557ca2a6b611 (patch) | |
tree | 572a457f298467aa46464541c7fd4121049fa7dd /scene/gui/subviewport_container.h | |
parent | a7d0e18a317085068c43be29bca1d280d03423a2 (diff) | |
download | redot-engine-8836f2160ab3a501ca35bc4ac753557ca2a6b611.tar.gz |
Move call of `push_unhandled_input` from `Window` to `Viewport`
This solves the problem, that mouse events get sent to SubViewports
even if they are outside of the visible area of the SubViewport.
This changes makes SubViewportContainer::unhandled_input redundand.
Shortcut Events now need to be distributed via push_input, in order for
them to be able to reach SubViewports.
Diffstat (limited to 'scene/gui/subviewport_container.h')
-rw-r--r-- | scene/gui/subviewport_container.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/gui/subviewport_container.h b/scene/gui/subviewport_container.h index c1a74e5b98..8e5f5d157d 100644 --- a/scene/gui/subviewport_container.h +++ b/scene/gui/subviewport_container.h @@ -55,7 +55,6 @@ public: 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; void recalc_force_viewport_sizes(); |