Only null out the controller if HAVE_SDL2

This commit is contained in:
Rob Loach 2024-08-29 23:15:10 -04:00
parent 0d10ae11f0
commit 7ca0939f86
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A
1 changed files with 2 additions and 0 deletions

View File

@ -146,7 +146,9 @@ static void sdl_pad_connect(unsigned id)
SDL_JoystickClose(pad->joypad);
pad->joypad = NULL;
#ifdef HAVE_SDL2
pad->controller = NULL;
#endif
return;
}