Merge pull request #30792 from KoBeWi/releasent
Don't release action if it's not pressed
This commit is contained in:
commit
5a5322ca06
1 changed files with 2 additions and 1 deletions
|
@ -686,7 +686,8 @@ void InputDefault::release_pressed_events() {
|
|||
_joy_axis.clear();
|
||||
|
||||
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