diff options
| author | Hondres | 2016-02-12 15:06:50 +0100 |
|---|---|---|
| committer | Hondres | 2016-02-12 15:06:50 +0100 |
| commit | 1fb9cc377fe05a6f631a9fcb306aa4f9d2e23b79 (patch) | |
| tree | 9215c051b4e0079984a7fd2b1928b945bf28ff71 /platform/windows/joystick.cpp | |
| parent | de6d6633ec96ee90afb3074be79c0ad6055ec8eb (diff) | |
| download | godot-1fb9cc377fe05a6f631a9fcb306aa4f9d2e23b79.tar.gz godot-1fb9cc377fe05a6f631a9fcb306aa4f9d2e23b79.tar.zst godot-1fb9cc377fe05a6f631a9fcb306aa4f9d2e23b79.zip | |
win: fix xinput triggers not resetting correctly
Diffstat (limited to 'platform/windows/joystick.cpp')
| -rw-r--r-- | platform/windows/joystick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/joystick.cpp b/platform/windows/joystick.cpp index f4fb09820..f8526b5ec 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; } |
