瀏覽代碼

Some controllers have trouble getting out to 20000

Sam Lantinga 8 年之前
父節點
當前提交
1ddff75c70
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/controllermap.c

+ 1 - 1
test/controllermap.c

@@ -444,7 +444,7 @@ WatchJoystick(SDL_Joystick * joystick)
                     if (nCurrentDistance > nFarthestDistance) {
                         pAxisState->m_nFarthestValue = nValue;
                     }
-                    if (nFarthestDistance >= 20000 && nCurrentDistance <= 10000) {
+                    if (nFarthestDistance >= 16000 && nCurrentDistance <= 10000) {
                         /* We've gone out far enough and started to come back, let's bind this axis */
                         SDL_GameControllerExtendedBind binding;
                         SDL_zero(binding);