diff options
| author | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-11-01 21:49:39 +0100 |
|---|---|---|
| committer | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-11-21 09:11:39 +0100 |
| commit | 80ad8afc85a90e6fda1b136b13c1eb42e35c115e (patch) | |
| tree | bc145bc5c008a2abfa159f4d5437c8d0b8813aca /main | |
| parent | 5ff84070ca3604b43e86562a3d000ed924a604a2 (diff) | |
| download | redot-engine-80ad8afc85a90e6fda1b136b13c1eb42e35c115e.tar.gz | |
Native pan and zoom for macOS
Diffstat (limited to 'main')
| -rw-r--r-- | main/input_default.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/input_default.cpp b/main/input_default.cpp index 2940f432d5..7cc7521686 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -319,6 +319,15 @@ void InputDefault::parse_input_event(const Ref<InputEvent> &p_event) { set_joy_axis(jm->get_device(), jm->get_axis(), jm->get_axis_value()); } + Ref<InputEventGesture> ge = p_event; + + if (ge.is_valid()) { + + if (main_loop) { + main_loop->input_event(ge); + } + } + if (!p_event->is_echo()) { for (const Map<StringName, InputMap::Action>::Element *E = InputMap::get_singleton()->get_action_map().front(); E; E = E->next()) { |
