Fix behaviour when an analog trigger is assigned to a button. (#790)
This commit is contained in:
parent
306eeead06
commit
17d3c75df4
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ namespace Ryujinx.UI.Input
|
|||
{
|
||||
int axis = controllerInputId - ControllerInputId.Axis0;
|
||||
|
||||
return Math.Abs(joystickState.GetAxis(axis)) > Deadzone;
|
||||
return joystickState.GetAxis(axis) > TriggerThreshold;
|
||||
}
|
||||
else if (controllerInputId <= ControllerInputId.Hat2Right)
|
||||
{
|
||||
|
|
Reference in a new issue