浏览代码

Merge pull request #3691 from Hinsbart/fix_xinput_triggers

fix xinput triggers not resetting correctly
Rémi Verschelde 9 年之前
父节点
当前提交
657a46c434
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/windows/joystick.cpp

+ 1 - 1
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;
 	}