mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
fix right JoyCon stick
This commit is contained in:
parent
68c03051ad
commit
8e50dd9fa6
1 changed files with 14 additions and 16 deletions
|
|
@ -67,23 +67,21 @@ namespace Ryujinx.Input.SDL2
|
||||||
|
|
||||||
public (float, float) GetStick(StickInputId inputId)
|
public (float, float) GetStick(StickInputId inputId)
|
||||||
{
|
{
|
||||||
if (inputId == StickInputId.Left)
|
switch (inputId)
|
||||||
{
|
{
|
||||||
switch (_joyConType)
|
case StickInputId.Left when _joyConType == JoyConType.Left:
|
||||||
{
|
{
|
||||||
case JoyConType.Left:
|
(float x, float y) = _gamepad.GetStick(inputId);
|
||||||
{
|
return (y, -x);
|
||||||
(float x, float y) = _gamepad.GetStick(inputId);
|
}
|
||||||
return (y, -x);
|
case StickInputId.Right when _joyConType == JoyConType.Right:
|
||||||
}
|
{
|
||||||
case JoyConType.Right:
|
(float x, float y) = _gamepad.GetStick(StickInputId.Left);
|
||||||
{
|
return (-y, x);
|
||||||
(float x, float y) = _gamepad.GetStick(inputId);
|
}
|
||||||
return (-y, x);
|
default:
|
||||||
}
|
return (0, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return (0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public GamepadFeaturesFlag Features => _gamepad.Features;
|
public GamepadFeaturesFlag Features => _gamepad.Features;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue