浏览代码

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

riperiperi 6 年之前
父节点
当前提交
17d3c75df4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ryujinx/Ui/NpadController.cs

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