diff options
author | riperiperi <rhy3756547@hotmail.com> | 2019-10-13 18:45:12 +0100 |
---|---|---|
committer | Thomas Guillemard <me@thog.eu> | 2019-10-13 19:45:12 +0200 |
commit | 17d3c75df493434e7207c1a9fedc9d45d5a9100a (patch) | |
tree | e04cf50cc5daee06ec35896f7104dd9c1a261e91 | |
parent | 306eeead06b87e674edee7bcd65960177eb217d4 (diff) |
Fix behaviour when an analog trigger is assigned to a button. (#790)
-rw-r--r-- | Ryujinx/Ui/NpadController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |