From 17d3c75df493434e7207c1a9fedc9d45d5a9100a Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sun, 13 Oct 2019 18:45:12 +0100 Subject: [PATCH] Fix behaviour when an analog trigger is assigned to a button. (#790) --- Ryujinx/Ui/NpadController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx/Ui/NpadController.cs b/Ryujinx/Ui/NpadController.cs index 7b61af19..c0baf9fb 100644 --- a/Ryujinx/Ui/NpadController.cs +++ b/Ryujinx/Ui/NpadController.cs @@ -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) {