mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Fix controller number check for adaptive triggers
This commit is contained in:
1 parent
d606709d83
commit
9fee675c91
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user