mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-16 18:36:35 +00:00
Fixed whitespace issues
This commit is contained in:
parent
89c2c6c76b
commit
3f6fca2921
@ -313,9 +313,9 @@ namespace Ryujinx.Input.SDL2
|
|||||||
return value * ConvertRate;
|
return value * ConvertRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
private JoyconConfigControllerStick<GamepadInputId, Common.Configuration.Hid.Controller.StickInputId> GetLogicalJoyStickConfig(StickInputId inputId)
|
private JoyconConfigControllerStick<GamepadInputId, Common.Configuration.Hid.Controller.StickInputId> GetLogicalJoyStickConfig(StickInputId inputId)
|
||||||
{
|
{
|
||||||
switch(inputId)
|
switch (inputId)
|
||||||
{
|
{
|
||||||
case StickInputId.Left:
|
case StickInputId.Left:
|
||||||
if (_configuration.RightJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Left)
|
if (_configuration.RightJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Left)
|
||||||
@ -323,14 +323,14 @@ namespace Ryujinx.Input.SDL2
|
|||||||
return _configuration.RightJoyconStick;
|
return _configuration.RightJoyconStick;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return _configuration.LeftJoyconStick;
|
return _configuration.LeftJoyconStick;
|
||||||
}
|
}
|
||||||
case StickInputId.Right:
|
case StickInputId.Right:
|
||||||
if (_configuration.LeftJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Right)
|
if (_configuration.LeftJoyconStick.Joystick == Common.Configuration.Hid.Controller.StickInputId.Right)
|
||||||
{
|
{
|
||||||
return _configuration.LeftJoyconStick;
|
return _configuration.LeftJoyconStick;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return _configuration.RightJoyconStick;
|
return _configuration.RightJoyconStick;
|
||||||
@ -374,8 +374,15 @@ namespace Ryujinx.Input.SDL2
|
|||||||
|
|
||||||
if (joyconStickConfig != null)
|
if (joyconStickConfig != null)
|
||||||
{
|
{
|
||||||
if (joyconStickConfig.InvertStickX) resultX = -resultX;
|
if (joyconStickConfig.InvertStickX)
|
||||||
if (joyconStickConfig.InvertStickY) resultY = -resultY;
|
{
|
||||||
|
resultX = -resultX;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (joyconStickConfig.InvertStickY)
|
||||||
|
{
|
||||||
|
resultY = -resultY;
|
||||||
|
}
|
||||||
|
|
||||||
if (joyconStickConfig.Rotate90CW)
|
if (joyconStickConfig.Rotate90CW)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user