fix: gamepads have the same name

When connecting multiple controllers of the same model, the first device's name ends with (0), the second with (1), the third with (1), the fourth with (1), and so on. To ensure these names are truly unique, GetUniqueGamepadName is now called recursively.
This commit is contained in:
Frosch authored and KeatonTheBot committed 2026-05-11 10:45:54 -05:00
1 parent 1950b34e39
commit 44872f45e0
1 file changed
+1 -1
@@ -469,7 +469,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
if (Devices.Any(controller => controller.Name == name))
{
controllerNumber++;
name = GetGamepadName(gamepad, controllerNumber);
name = GetUniqueGamepadName(gamepad, ref controllerNumber);
}
return name;
}