Forgot to add the multiplier

This commit is contained in:
SerpentSpirale authored and SerpentSpirale committed 2021-07-22 22:02:13 +02:00
1 parent a31331a0f1
commit bf228199e4
1 file changed
+1 -1
@@ -28,7 +28,7 @@ public class GamepadJoystick {
this.horizontalAxis = horizontalAxis;
//Some controllers aren't recognized as such by android, so we fallback to a default value of 0.2
try { deadzone = Math.max(device.getMotionRange(verticalAxis).getFlat(), device.getMotionRange(horizontalAxis).getFlat()); }
try { deadzone = Math.max(device.getMotionRange(verticalAxis).getFlat(), device.getMotionRange(horizontalAxis).getFlat()) * 1.9f; }
catch (NullPointerException e){ deadzone = 0.2f; }
if(deadzone < 0.15) deadzone = 0.15f;