From e0564c0872b67dd96537e2fea36a4b29c3b8de36 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 31 Aug 2016 12:17:44 +0200 Subject: dinput: allow immediate button "unhold" Reported-by: @MathijsG Issue: #434 --- dinput/keybinding-worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3