Skip to content

Commit

Permalink
Update rcore_desktop_sdl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 29, 2023
1 parent 1fd61a0 commit 21243c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,8 @@ int InitPlatform(void)
//----------------------------------------------------------------------------
if (SDL_NumJoysticks() >= 1)
{
SDL_Joystick *gamepad = SDL_JoystickOpen(0);
//if (SDL_Joystick *gamepad == NULL) SDL_Log("WARNING: Unable to open game controller! SDL Error: %s\n", SDL_GetError());
platform.gamepad = SDL_JoystickOpen(0);
//if (platform.gamepadgamepad == NULL) TRACELOG(LOG_WARNING, "PLATFORM: Unable to open game controller [ERROR: %s]", SDL_GetError());
}

SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
Expand Down

0 comments on commit 21243c8

Please sign in to comment.