summaryrefslogtreecommitdiff
path: root/main/input_default.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-25 09:18:33 +0200
committerGitHub <noreply@github.com>2019-07-25 09:18:33 +0200
commit5a5322ca0625edda3a62c78e51b7ef9e2697f2fe (patch)
tree5f4c940e3d17e7e1aa06649cd72e0ab562a1311b /main/input_default.cpp
parentb662bc65bfce7a82c0401cdb23eae31788ee4c23 (diff)
parentbd5b73108f7ff02a691888e34cddf72b8d84ad05 (diff)
Merge pull request #30792 from KoBeWi/releasent
Don't release action if it's not pressed
Diffstat (limited to 'main/input_default.cpp')
-rw-r--r--main/input_default.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/input_default.cpp b/main/input_default.cpp
index a03d015fc3..caa5c10518 100644
--- a/main/input_default.cpp
+++ b/main/input_default.cpp
@@ -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());
}
}