소스 검색

win: fix xinput triggers not resetting correctly

Hondres 9 년 전
부모
커밋
1fb9cc377f
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;
 	}