From 424d34f93a75382e445c78682ae844af4f94a04a Mon Sep 17 00:00:00 2001 From: SerpentSpirale Date: Mon, 6 Sep 2021 16:20:37 +0200 Subject: [PATCH] Increase gamepad deadzone --- .../pojavlaunch/customcontrols/gamepad/GamepadJoystick.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadJoystick.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadJoystick.java index acf01560c..810e93349 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadJoystick.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadJoystick.java @@ -85,13 +85,13 @@ public class GamepadJoystick { } /** - * Get the dedzone from the Input device linked to this joystick + * Get the deadzone from the Input device linked to this joystick * Some controller aren't supported, fallback to 0.2 if that the case. * @return the deadzone of the joystick */ public float getDeadzone() { try{ - return Math.max(device.getMotionRange(horizontalAxis).getFlat() * 1.5f, 0.15f); + return Math.max(device.getMotionRange(horizontalAxis).getFlat() * 1.8f, 0.15f); }catch (Exception e){ return 0.2f; }