ソースを参照

updated comment in rcore_desktop_glfw.c

pull/5444/head
Dino 2ヶ月前
committed by GitHub
コミット
b0431fea1b
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: B5690EEEBB952194
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/platforms/rcore_desktop_glfw.c

+ 1
- 1
src/platforms/rcore_desktop_glfw.c ファイルの表示

@ -1269,7 +1269,7 @@ void PollInputEvents(void)
int isGamepadConnected = glfwGetGamepadState(i, &state); // This remapps all gamepads so they have their buttons mapped like an xbox controller
if (!isGamepadConnected)
{
// setting axes to expected value instead of GLFW's 0.0f default when gamepad isnt connected
// setting axes to expected resting value instead of GLFW's 0.0f default when gamepad isnt connected
state.axes[GAMEPAD_AXIS_LEFT_TRIGGER] = -1.0f;
state.axes[GAMEPAD_AXIS_RIGHT_TRIGGER] = -1.0f;
}

読み込み中…
キャンセル
保存