Fix behaviour when an analog trigger is assigned to a button.

This commit is contained in:
riperiperi 2019-10-13 18:05:21 +01:00
commit f1738eb699

View file

@ -170,7 +170,7 @@ namespace Ryujinx.UI.Input
{ {
int axis = controllerInputId - ControllerInputId.Axis0; int axis = controllerInputId - ControllerInputId.Axis0;
return Math.Abs(joystickState.GetAxis(axis)) > Deadzone; return joystickState.GetAxis(axis) > TriggerThreshold;
} }
else if (controllerInputId <= ControllerInputId.Hat2Right) else if (controllerInputId <= ControllerInputId.Hat2Right)
{ {