From 7e5eff8a29525df247110268133dcf11f9e72b11 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 25 Oct 2023 10:15:19 +0200 Subject: [PATCH] Revert "Fix #3461" This reverts commit 8fbd42d592c22612e18d2c6f9bcef8a107984675. --- src/platforms/rcore_desktop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c index de34c8711..f1ad8a9a3 100644 --- a/src/platforms/rcore_desktop.c +++ b/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; }