summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/windows/joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/joystick.cpp b/platform/windows/joystick.cpp
index f4fb09820f..f8526b5ec1 100644
--- a/platform/windows/joystick.cpp
+++ b/platform/windows/joystick.cpp
@@ -472,7 +472,7 @@ InputDefault::JoyAxis joystick_windows::axis_correct(int p_val, bool p_xinput, b
InputDefault::JoyAxis jx;
if (Math::abs(p_val) < MIN_JOY_AXIS) {
- jx.min = -1;
+ jx.min = p_trigger ? 0 : -1;
jx.value = 0.0f;
return jx;
}