Update rcore_desktop_sdl.c
This commit is contained in:
parent
1fd61a00e4
commit
21243c8234
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue