aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/Ui/Windows/ControllerWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx/Ui/Windows/ControllerWindow.cs')
-rw-r--r--src/Ryujinx/Ui/Windows/ControllerWindow.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Ryujinx/Ui/Windows/ControllerWindow.cs b/src/Ryujinx/Ui/Windows/ControllerWindow.cs
index 2993e1f2..ebf22ab6 100644
--- a/src/Ryujinx/Ui/Windows/ControllerWindow.cs
+++ b/src/Ryujinx/Ui/Windows/ControllerWindow.cs
@@ -1035,6 +1035,8 @@ namespace Ryujinx.Ui.Windows
}
else if (_inputDevice.ActiveId.StartsWith("controller"))
{
+ bool isNintendoStyle = _inputDevice.ActiveText.Contains("Nintendo");
+
config = new StandardControllerInputConfig
{
Version = InputConfig.CurrentVersion,
@@ -1070,10 +1072,10 @@ namespace Ryujinx.Ui.Windows
RightJoycon = new RightJoyconCommonConfig<ConfigGamepadInputId>
{
- ButtonA = ConfigGamepadInputId.B,
- ButtonB = ConfigGamepadInputId.A,
- ButtonX = ConfigGamepadInputId.Y,
- ButtonY = ConfigGamepadInputId.X,
+ ButtonA = isNintendoStyle ? ConfigGamepadInputId.A : ConfigGamepadInputId.B,
+ ButtonB = isNintendoStyle ? ConfigGamepadInputId.B : ConfigGamepadInputId.A,
+ ButtonX = isNintendoStyle ? ConfigGamepadInputId.X : ConfigGamepadInputId.Y,
+ ButtonY = isNintendoStyle ? ConfigGamepadInputId.Y : ConfigGamepadInputId.X,
ButtonPlus = ConfigGamepadInputId.Plus,
ButtonR = ConfigGamepadInputId.RightShoulder,
ButtonZr = ConfigGamepadInputId.RightTrigger,