Explorar o código

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

riperiperi %!s(int64=6) %!d(string=hai) anos
pai
achega
17d3c75df4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
             {