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,6 +686,7 @@ void InputDefault::release_pressed_events() {
|
|||
_joy_axis.clear();
|
||||
|
||||
for (Map<StringName, InputDefault::Action>::Element *E = action_state.front(); E; E = E->next()) {
|
||||
if (E->get().pressed)
|
||||
action_release(E->key());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue