mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 23:59:21 -04:00
Forgot to add the multiplier
This commit is contained in:
parent
a31331a0f1
commit
bf228199e4
@ -28,7 +28,7 @@ public class GamepadJoystick {
|
|||||||
this.horizontalAxis = horizontalAxis;
|
this.horizontalAxis = horizontalAxis;
|
||||||
|
|
||||||
//Some controllers aren't recognized as such by android, so we fallback to a default value of 0.2
|
//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; }
|
catch (NullPointerException e){ deadzone = 0.2f; }
|
||||||
|
|
||||||
if(deadzone < 0.15) deadzone = 0.15f;
|
if(deadzone < 0.15) deadzone = 0.15f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user