summaryrefslogtreecommitdiffstats
path: root/src/controllers/hid/hidcontroller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/hid/hidcontroller.h')
-rw-r--r--src/controllers/hid/hidcontroller.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/controllers/hid/hidcontroller.h b/src/controllers/hid/hidcontroller.h
index 543684ee76..65e06fd4f2 100644
--- a/src/controllers/hid/hidcontroller.h
+++ b/src/controllers/hid/hidcontroller.h
@@ -89,7 +89,10 @@ class HidController final : public Controller {
hid_device* m_pHidDevice;
HidControllerPreset m_preset;
- unsigned char m_pPollData[255];
+ static constexpr int kNumBuffers = 2;
+ static constexpr int kBufferSize = 255;
+ unsigned char m_pPollData[kNumBuffers][kBufferSize];
+ int m_iPollingBufferIndex;
};
#endif