Skip to content

Commit

Permalink
Fix wrong parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
asdqwe committed Jan 28, 2025
1 parent b4667ef commit 290517a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ const char *GetGamepadGUID(int gamepad)
{
static char buffer[MAX_JOYSTICKGUID_BUFFER_LENGTH] = { 0 };

SDL_JoystickGUID joystickGUID = SDL_JoystickGetGUID(SDL_GameControllerGetJoystick(platform.gamepad[0]));
SDL_JoystickGUID joystickGUID = SDL_JoystickGetGUID(SDL_GameControllerGetJoystick(platform.gamepad[gamepad]));

SDL_JoystickGetGUIDString(joystickGUID, buffer, MAX_JOYSTICKGUID_BUFFER_LENGTH -1);

Expand Down

0 comments on commit 290517a

Please sign in to comment.