From 9fee675c91ba6e37dfeb343c7811af0812e90524 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 24 Oct 2026 20:26:29 -0500 Subject: [PATCH] Fix controller number check for adaptive triggers --- app/streaming/input/gamepad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/input/gamepad.cpp b/app/streaming/input/gamepad.cpp index b649971b..d4e4c03f 100644 --- a/app/streaming/input/gamepad.cpp +++ b/app/streaming/input/gamepad.cpp @@ -965,7 +965,7 @@ void SdlInputHandler::setAdaptiveTriggers(uint16_t controllerNumber, DualSenseOu #if SDL_VERSION_ATLEAST(2, 0, 16) // Make sure the controller number is within our supported count - if (controllerNumber <= MAX_GAMEPADS && + if (controllerNumber < MAX_GAMEPADS && // and we have a valid controller m_GamepadState[controllerNumber].controller != nullptr && // and it's a PS5 controller