소스 검색

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