Merge pull request #30792 from KoBeWi/releasent

Don't release action if it's not pressed
This commit is contained in:
Rémi Verschelde 2019-07-25 09:18:33 +02:00 committed by GitHub
commit 5a5322ca06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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