Don't release action if it's not pressed

This commit is contained in:
Tomasz Chabora 2019-07-24 12:44:08 +02:00
parent adae2b0738
commit bd5b73108f

View file

@ -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());
}
}