summaryrefslogtreecommitdiffhomepage
path: root/src/platforms
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-25 10:15:19 +0200
committerRay <[email protected]>2023-10-25 10:15:19 +0200
commit7e5eff8a29525df247110268133dcf11f9e72b11 (patch)
tree04dbf43b86304ff892faa1dedc74d22eab678323 /src/platforms
parent8fbd42d592c22612e18d2c6f9bcef8a107984675 (diff)
downloadraylib-7e5eff8a29525df247110268133dcf11f9e72b11.tar.gz
raylib-7e5eff8a29525df247110268133dcf11f9e72b11.zip
Revert "Fix #3461"
This reverts commit 8fbd42d592c22612e18d2c6f9bcef8a107984675.
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/rcore_desktop.c6
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;
}