win: fix xinput triggers not resetting correctly

This commit is contained in:
Hondres 2016-02-12 15:06:50 +01:00
parent de6d6633ec
commit 1fb9cc377f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}