From 5511ff5686d712e53cf4d6b16d31c8da4dda92c8 Mon Sep 17 00:00:00 2001 From: Frosch Date: Sun, 10 May 2026 23:19:59 +0000 Subject: [PATCH] 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: ![image](/attachments/c27ab407-0945-48d8-92a8-6f1fe7fb2727) After: ![image](/attachments/da7b1427-958c-45d5-8351-6f977d971e1e) Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/27 --- src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs index e5f085e0f..51229af72 100644 --- a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs @@ -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;