diff options
Diffstat (limited to 'dinput/win32-joystick.hpp')
-rw-r--r-- | dinput/win32-joystick.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp index 4e72853f..4d2dd344 100644 --- a/dinput/win32-joystick.hpp +++ b/dinput/win32-joystick.hpp @@ -43,9 +43,12 @@ struct OTR_DINPUT_EXPORT win32_joy_ctx { LPDIRECTINPUTDEVICE8 joy_handle; QString guid, name; - bool pressed[128 + 4 * 4]; + enum { num_pressed_keys = 128 + 4 * 4 }; + //bool pressed[num_pressed_keys] {}; Timer first_timer; + static DIDEVICEOBJECTDATA keystate_buffers[256]; + joy(LPDIRECTINPUTDEVICE8 handle, const QString& guid, const QString& name); ~joy(); |