浏览代码

Revert "Fix #3461"

This reverts commit 8fbd42d592c22612e18d2c6f9bcef8a107984675.
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
     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;
     }