Update rcore_desktop_sdl.c

This commit is contained in:
Ray 2023-10-29 20:42:29 +01:00
parent 1fd61a00e4
commit 21243c8234

View file

@ -1269,8 +1269,8 @@ int InitPlatform(void)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
if (SDL_NumJoysticks() >= 1) if (SDL_NumJoysticks() >= 1)
{ {
SDL_Joystick *gamepad = SDL_JoystickOpen(0); platform.gamepad = SDL_JoystickOpen(0);
//if (SDL_Joystick *gamepad == NULL) SDL_Log("WARNING: Unable to open game controller! SDL Error: %s\n", SDL_GetError()); //if (platform.gamepadgamepad == NULL) TRACELOG(LOG_WARNING, "PLATFORM: Unable to open game controller [ERROR: %s]", SDL_GetError());
} }
SDL_EventState(SDL_DROPFILE, SDL_ENABLE); SDL_EventState(SDL_DROPFILE, SDL_ENABLE);