1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-23 11:42:02 +00:00

Fix behaviour when an analog trigger is assigned to a button. (#790)

This commit is contained in:
riperiperi 2019-10-13 18:45:12 +01:00 committed by Thomas Guillemard
parent 306eeead06
commit 17d3c75df4

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)
{ {