From 3f6fca292111ff67441aa0e82fe8b0cef870c20b Mon Sep 17 00:00:00 2001 From: Aaron Murgatroyd Date: Sun, 17 Dec 2023 02:34:17 +1000 Subject: [PATCH] Fixed whitespace issues --- src/Ryujinx.Input.SDL2/SDL2Gamepad.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs b/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs index 18e353567f..14c3a865e5 100644 --- a/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs +++ b/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs @@ -313,9 +313,9 @@ namespace Ryujinx.Input.SDL2 return value * ConvertRate; } - private JoyconConfigControllerStick GetLogicalJoyStickConfig(StickInputId inputId) + private JoyconConfigControllerStick GetLogicalJoyStickConfig(StickInputId inputId) { - switch(inputId) + switch (inputId) { case StickInputId.Left: if (_configuration.RightJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Left) @@ -323,14 +323,14 @@ namespace Ryujinx.Input.SDL2 return _configuration.RightJoyconStick; } else - { + { return _configuration.LeftJoyconStick; } case StickInputId.Right: if (_configuration.LeftJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Right) { return _configuration.LeftJoyconStick; - } + } else { return _configuration.RightJoyconStick; @@ -374,8 +374,15 @@ namespace Ryujinx.Input.SDL2 if (joyconStickConfig != null) { - if (joyconStickConfig.InvertStickX) resultX = -resultX; - if (joyconStickConfig.InvertStickY) resultY = -resultY; + if (joyconStickConfig.InvertStickX) + { + resultX = -resultX; + } + + if (joyconStickConfig.InvertStickY) + { + resultY = -resultY; + } if (joyconStickConfig.Rotate90CW) {