summaryrefslogtreecommitdiffhomepage
path: root/dinput/win32-joystick.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dinput/win32-joystick.hpp')
-rw-r--r--dinput/win32-joystick.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp
index 42ecf57f..f7ea1302 100644
--- a/dinput/win32-joystick.hpp
+++ b/dinput/win32-joystick.hpp
@@ -47,7 +47,8 @@ struct OTR_DINPUT_EXPORT win32_joy_ctx
//bool pressed[num_pressed_keys] {};
Timer first_timer;
- static DIDEVICEOBJECTDATA keystate_buffers[256];
+ static constexpr int num_buffers = 16;
+ static DIDEVICEOBJECTDATA keystate_buffers[num_buffers];
joy(LPDIRECTINPUTDEVICE8 handle, const QString& guid, const QString& name);
~joy();