mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-05-12 19:40:36 +00:00
fix: gamepads have the same name (#27)
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. Before:  After:  Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/27
This commit is contained in:
parent
bf7f978f9d
commit
5511ff5686
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue