mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:00:17 +00:00
Rotate 90 degrees clockwise
This commit is contained in:
parent
00c51c67f9
commit
7599c81415
5 changed files with 18 additions and 18 deletions
|
@ -5,7 +5,7 @@
|
|||
public Stick Joystick { get; set; }
|
||||
public bool InvertStickX { get; set; }
|
||||
public bool InvertStickY { get; set; }
|
||||
public bool SwapSticks { get; set; }
|
||||
public bool Rotate90CW { get; set; }
|
||||
public Button StickButton { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ namespace Ryujinx.Headless.SDL2
|
|||
StickButton = ConfigGamepadInputId.LeftStick,
|
||||
InvertStickX = false,
|
||||
InvertStickY = false,
|
||||
SwapSticks = false,
|
||||
Rotate90CW = false,
|
||||
},
|
||||
|
||||
RightJoycon = new RightJoyconCommonConfig<ConfigGamepadInputId>
|
||||
|
@ -242,7 +242,7 @@ namespace Ryujinx.Headless.SDL2
|
|||
StickButton = ConfigGamepadInputId.RightStick,
|
||||
InvertStickX = false,
|
||||
InvertStickY = false,
|
||||
SwapSticks = false,
|
||||
Rotate90CW = false,
|
||||
},
|
||||
|
||||
Motion = new StandardMotionConfigController
|
||||
|
|
|
@ -351,12 +351,12 @@ namespace Ryujinx.Input.SDL2
|
|||
resultY = -resultY;
|
||||
}
|
||||
|
||||
if ((inputId == StickInputId.Left && _configuration.LeftJoyconStick.SwapSticks) ||
|
||||
(inputId == StickInputId.Right && _configuration.RightJoyconStick.SwapSticks))
|
||||
if ((inputId == StickInputId.Left && _configuration.LeftJoyconStick.Rotate90CW) ||
|
||||
(inputId == StickInputId.Right && _configuration.RightJoyconStick.Rotate90CW))
|
||||
{
|
||||
float temp = resultX;
|
||||
resultX = resultY;
|
||||
resultY = temp;
|
||||
resultY = -temp;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace Ryujinx.Ui.Windows
|
|||
[GUI] ToggleButton _lStick;
|
||||
[GUI] CheckButton _invertLStickX;
|
||||
[GUI] CheckButton _invertLStickY;
|
||||
[GUI] CheckButton _swapLSticks;
|
||||
[GUI] CheckButton _rotateL90CW;
|
||||
[GUI] ToggleButton _lStickUp;
|
||||
[GUI] ToggleButton _lStickDown;
|
||||
[GUI] ToggleButton _lStickLeft;
|
||||
|
@ -89,7 +89,7 @@ namespace Ryujinx.Ui.Windows
|
|||
[GUI] ToggleButton _rStick;
|
||||
[GUI] CheckButton _invertRStickX;
|
||||
[GUI] CheckButton _invertRStickY;
|
||||
[GUI] CheckButton _swapRSticks;
|
||||
[GUI] CheckButton _rotateR90CW;
|
||||
[GUI] ToggleButton _rStickUp;
|
||||
[GUI] ToggleButton _rStickDown;
|
||||
[GUI] ToggleButton _rStickLeft;
|
||||
|
@ -492,7 +492,7 @@ namespace Ryujinx.Ui.Windows
|
|||
_lStick.Label = controllerConfig.LeftJoyconStick.Joystick.ToString();
|
||||
_invertLStickX.Active = controllerConfig.LeftJoyconStick.InvertStickX;
|
||||
_invertLStickY.Active = controllerConfig.LeftJoyconStick.InvertStickY;
|
||||
_swapLSticks.Active = controllerConfig.LeftJoyconStick.SwapSticks;
|
||||
_rotateL90CW.Active = controllerConfig.LeftJoyconStick.Rotate90CW;
|
||||
_lStickButton.Label = controllerConfig.LeftJoyconStick.StickButton.ToString();
|
||||
_dpadUp.Label = controllerConfig.LeftJoycon.DpadUp.ToString();
|
||||
_dpadDown.Label = controllerConfig.LeftJoycon.DpadDown.ToString();
|
||||
|
@ -506,7 +506,7 @@ namespace Ryujinx.Ui.Windows
|
|||
_rStick.Label = controllerConfig.RightJoyconStick.Joystick.ToString();
|
||||
_invertRStickX.Active = controllerConfig.RightJoyconStick.InvertStickX;
|
||||
_invertRStickY.Active = controllerConfig.RightJoyconStick.InvertStickY;
|
||||
_swapRSticks.Active = controllerConfig.RightJoyconStick.SwapSticks;
|
||||
_rotateR90CW.Active = controllerConfig.RightJoyconStick.Rotate90CW;
|
||||
_rStickButton.Label = controllerConfig.RightJoyconStick.StickButton.ToString();
|
||||
_a.Label = controllerConfig.RightJoycon.ButtonA.ToString();
|
||||
_b.Label = controllerConfig.RightJoycon.ButtonB.ToString();
|
||||
|
@ -722,7 +722,7 @@ namespace Ryujinx.Ui.Windows
|
|||
Joystick = lStick,
|
||||
InvertStickY = _invertLStickY.Active,
|
||||
StickButton = lStickButton,
|
||||
SwapSticks = _swapLSticks.Active,
|
||||
Rotate90CW = _rotateL90CW.Active,
|
||||
},
|
||||
RightJoycon = new RightJoyconCommonConfig<ConfigGamepadInputId>
|
||||
{
|
||||
|
@ -742,7 +742,7 @@ namespace Ryujinx.Ui.Windows
|
|||
Joystick = rStick,
|
||||
InvertStickY = _invertRStickY.Active,
|
||||
StickButton = rStickButton,
|
||||
SwapSticks = _swapRSticks.Active,
|
||||
Rotate90CW = _rotateR90CW.Active,
|
||||
},
|
||||
Motion = motionConfig,
|
||||
Rumble = new RumbleConfigController
|
||||
|
@ -1062,7 +1062,7 @@ namespace Ryujinx.Ui.Windows
|
|||
StickButton = ConfigGamepadInputId.LeftStick,
|
||||
InvertStickX = false,
|
||||
InvertStickY = false,
|
||||
SwapSticks = false,
|
||||
Rotate90CW = false,
|
||||
},
|
||||
|
||||
RightJoycon = new RightJoyconCommonConfig<ConfigGamepadInputId>
|
||||
|
@ -1084,7 +1084,7 @@ namespace Ryujinx.Ui.Windows
|
|||
StickButton = ConfigGamepadInputId.RightStick,
|
||||
InvertStickX = false,
|
||||
InvertStickY = false,
|
||||
SwapSticks = false,
|
||||
Rotate90CW = false,
|
||||
},
|
||||
|
||||
Motion = new StandardMotionConfigController
|
||||
|
|
|
@ -741,8 +741,8 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="_swapLSticks">
|
||||
<property name="label" translatable="yes">Swap Sticks</property>
|
||||
<object class="GtkCheckButton" id="_rotateL90CW">
|
||||
<property name="label" translatable="yes">Rotate 90° Clockwise</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
|
@ -1711,8 +1711,8 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="_swapRSticks">
|
||||
<property name="label" translatable="yes">Swap Sticks</property>
|
||||
<object class="GtkCheckButton" id="_rotateR90CW">
|
||||
<property name="label" translatable="yes">Rotate 90° Clockwise</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
|
|
Loading…
Reference in a new issue