diff options
Diffstat (limited to 'dinput/keybinding-worker.hpp')
-rw-r--r-- | dinput/keybinding-worker.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dinput/keybinding-worker.hpp b/dinput/keybinding-worker.hpp index d35ac57d..f7314482 100644 --- a/dinput/keybinding-worker.hpp +++ b/dinput/keybinding-worker.hpp @@ -49,6 +49,9 @@ private: QMainWindow fake_main_window; dinput_handle::di_t din; + unsigned char keystate[256] {}; + unsigned char old_keystate[256] {}; + void run() override; bool init(); KeybindingWorker(); @@ -58,6 +61,9 @@ private: void remove_receiver(fun* pos); ~KeybindingWorker(); + static constexpr int num_keyboard_states = 128; + DIDEVICEOBJECTDATA keyboard_states[num_keyboard_states]; + KeybindingWorker(const KeybindingWorker&) = delete; KeybindingWorker& operator=(KeybindingWorker&) = delete; public: |