From f1738eb6996f5d11230c7198fa0128a42ba444e0 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sun, 13 Oct 2019 18:05:21 +0100 Subject: [PATCH] Fix behaviour when an analog trigger is assigned to a button. --- 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 7b61af194f..c0baf9fb42 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) {