Don't release action if it's not pressed
This commit is contained in:
parent
adae2b0738
commit
bd5b73108f
1 changed files with 2 additions and 1 deletions
|
@ -686,7 +686,8 @@ void InputDefault::release_pressed_events() {
|
||||||
_joy_axis.clear();
|
_joy_axis.clear();
|
||||||
|
|
||||||
for (Map<StringName, InputDefault::Action>::Element *E = action_state.front(); E; E = E->next()) {
|
for (Map<StringName, InputDefault::Action>::Element *E = action_state.front(); E; E = E->next()) {
|
||||||
action_release(E->key());
|
if (E->get().pressed)
|
||||||
|
action_release(E->key());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue