summaryrefslogtreecommitdiffhomepage
path: root/dinput
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-31 12:17:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-31 12:17:44 +0200
commite0564c0872b67dd96537e2fea36a4b29c3b8de36 (patch)
tree83ba41e61274019b650b18da3d3ba740fbc9d876 /dinput
parent13fba78bc99b69c592dd058017b2c3815e23abca (diff)
dinput: allow immediate button "unhold"
Reported-by: @MathijsG Issue: #434
Diffstat (limited to 'dinput')
-rw-r--r--dinput/keybinding-worker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp
index 0f4788af..a67e8470 100644
--- a/dinput/keybinding-worker.cpp
+++ b/dinput/keybinding-worker.cpp
@@ -18,7 +18,7 @@ bool Key::should_process()
{
if (!enabled || (keycode == 0 && guid == ""))
return false;
- bool ret = timer.elapsed_ms() > 100;
+ bool ret = !held || timer.elapsed_ms() > 100;
timer.start();
return ret;
}