You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
win: fix xinput triggers not resetting correctly
This commit is contained in:
@@ -472,7 +472,7 @@ InputDefault::JoyAxis joystick_windows::axis_correct(int p_val, bool p_xinput, b
|
|||||||
|
|
||||||
InputDefault::JoyAxis jx;
|
InputDefault::JoyAxis jx;
|
||||||
if (Math::abs(p_val) < MIN_JOY_AXIS) {
|
if (Math::abs(p_val) < MIN_JOY_AXIS) {
|
||||||
jx.min = -1;
|
jx.min = p_trigger ? 0 : -1;
|
||||||
jx.value = 0.0f;
|
jx.value = 0.0f;
|
||||||
return jx;
|
return jx;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user