summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_desktop_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c
index 566d75d8..8793e6c7 100644
--- a/src/platforms/rcore_desktop_sdl.c
+++ b/src/platforms/rcore_desktop_sdl.c
@@ -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);