summaryrefslogtreecommitdiffhomepage
path: root/dinput/keybinding-worker.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-31 21:05:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-10-31 21:05:40 +0100
commit1b78a8ffeb9c320747422ba10bf7c26018cae580 (patch)
treeebd33a7b522bda2719aecf11f7578f14beebfe0b /dinput/keybinding-worker.hpp
parentd971b9d699f7862b4c9414abfdb64445f4be9018 (diff)
dinput: fix modifiers not registering
Found-by: @Len62 cf. https://github.com/opentrack/opentrack/issues/688#issuecomment-34063145
Diffstat (limited to 'dinput/keybinding-worker.hpp')
-rw-r--r--dinput/keybinding-worker.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dinput/keybinding-worker.hpp b/dinput/keybinding-worker.hpp
index f7314482..407b0107 100644
--- a/dinput/keybinding-worker.hpp
+++ b/dinput/keybinding-worker.hpp
@@ -49,8 +49,8 @@ private:
QMainWindow fake_main_window;
dinput_handle::di_t din;
- unsigned char keystate[256] {};
- unsigned char old_keystate[256] {};
+ bool keystate[256] {};
+ bool old_keystate[256] {};
void run() override;
bool init();