diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_desktop.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c index de34c871..f1ad8a9a 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; } |
