瀏覽代碼

Revert "Fix #3461"

This reverts commit 8fbd42d592.
pull/3462/head
Ray 1 年之前
父節點
當前提交
7e5eff8a29
共有 1 個檔案被更改,包括 1 行新增5 行删除
  1. +1
    -5
      src/platforms/rcore_desktop.c

+ 1
- 5
src/platforms/rcore_desktop.c 查看文件

@ -1120,11 +1120,7 @@ void PollInputEvents(void)
// NOTE: We do it here in case of disconnection // NOTE: We do it here in case of disconnection
for (int i = 0; i < MAX_GAMEPADS; i++) for (int i = 0; i < MAX_GAMEPADS; i++)
{ {
if (glfwJoystickPresent(i))
{
CORE.Input.Gamepad.ready[i] = true;
strcpy(CORE.Input.Gamepad.name[i], glfwGetJoystickName(i));
}
if (glfwJoystickPresent(i)) CORE.Input.Gamepad.ready[i] = true;
else CORE.Input.Gamepad.ready[i] = false; else CORE.Input.Gamepad.ready[i] = false;
} }

Loading…
取消
儲存