do not emit InputEventGesture twice
This commit is contained in:
parent
89cf90534f
commit
8f84b4b3ad
|
@ -677,12 +677,6 @@ void Input::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool p_is_em
|
|||
|
||||
Ref<InputEventGesture> ge = p_event;
|
||||
|
||||
if (ge.is_valid()) {
|
||||
if (event_dispatch_function) {
|
||||
event_dispatch_function(ge);
|
||||
}
|
||||
}
|
||||
|
||||
for (OrderedHashMap<StringName, InputMap::Action>::ConstElement E = InputMap::get_singleton()->get_action_map().front(); E; E = E.next()) {
|
||||
if (InputMap::get_singleton()->event_is_action(p_event, E.key())) {
|
||||
// If not echo and action pressed state has changed
|
||||
|
|
Loading…
Reference in a new issue