From 1fb9cc377fe05a6f631a9fcb306aa4f9d2e23b79 Mon Sep 17 00:00:00 2001 From: Hondres Date: Fri, 12 Feb 2016 15:06:50 +0100 Subject: win: fix xinput triggers not resetting correctly --- platform/windows/joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/windows/joystick.cpp') 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; } -- cgit v1.2.3