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
2026-05-16 23:11:54 -05:00
committed by KeatonTheBot
parent ac699e430b
commit d9da38c10b
@@ -476,7 +476,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;
}