Use the Joystick interface for game controller input. (#737)
* switch gamepad input to joystick * fix style nits * modify config.md to reflect new changes
This commit is contained in:
parent
54b79dffa8
commit
1ba58e9942
6 changed files with 239 additions and 219 deletions
|
@ -183,17 +183,17 @@ namespace Ryujinx
|
|||
};
|
||||
}
|
||||
|
||||
currentButton |= Configuration.Instance.GamepadControls.GetButtons();
|
||||
currentButton |= Configuration.Instance.JoystickControls.GetButtons();
|
||||
|
||||
// Keyboard has priority stick-wise
|
||||
if (leftJoystickDx == 0 && leftJoystickDy == 0)
|
||||
{
|
||||
(leftJoystickDx, leftJoystickDy) = Configuration.Instance.GamepadControls.GetLeftStick();
|
||||
(leftJoystickDx, leftJoystickDy) = Configuration.Instance.JoystickControls.GetLeftStick();
|
||||
}
|
||||
|
||||
if (rightJoystickDx == 0 && rightJoystickDy == 0)
|
||||
{
|
||||
(rightJoystickDx, rightJoystickDy) = Configuration.Instance.GamepadControls.GetRightStick();
|
||||
(rightJoystickDx, rightJoystickDy) = Configuration.Instance.JoystickControls.GetRightStick();
|
||||
}
|
||||
|
||||
leftJoystick = new JoystickPosition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue