From 12e67740351fbeec495455e1509c9298a924720c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 25 Jun 2023 17:36:44 -0500 Subject: [PATCH] Fix max gamepad count to match protocol limitation --- src/platform/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/common.h b/src/platform/common.h index 07f4c9d3..d9af3b18 100644 --- a/src/platform/common.h +++ b/src/platform/common.h @@ -47,7 +47,8 @@ namespace video { } // namespace video namespace platf { - constexpr auto MAX_GAMEPADS = 32; + // Limited by bits in activeGamepadMask + constexpr auto MAX_GAMEPADS = 16; constexpr std::uint32_t DPAD_UP = 0x0001; constexpr std::uint32_t DPAD_DOWN = 0x0002;