mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 03:09:17 -05:00
Update rcore_desktop_sdl.c
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user