Only null out the controller if HAVE_SDL2
This commit is contained in:
parent
0d10ae11f0
commit
7ca0939f86
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue