Compare commits

...

2 Commits

Author SHA1 Message Date
Evan Husted
2e1ede5348 Merge remote-tracking branch 'origin/master' 2024-11-17 00:58:10 -06:00
Evan Husted
52f42d450f try 1: Fix IndexOutOfBounds in SDL2GamepadDriver.cs 2024-11-17 00:57:56 -06:00

View File

@@ -115,7 +115,10 @@ namespace Ryujinx.Input.SDL2
{
lock (_lock)
{
if (joystickDeviceId <= _gamepadsIds.FindLastIndex(_ => true))
_gamepadsIds.Insert(joystickDeviceId, id);
else
_gamepadsIds.Add(id);
}
OnGamepadConnected?.Invoke(id);