Add hotplug support to SDL2 controller backend

This commit is contained in:
Michael M 2017-11-09 14:06:58 -08:00 committed by Léo Lam
parent 7062967b5b
commit 932ca644aa
3 changed files with 143 additions and 27 deletions

View file

@ -158,8 +158,7 @@ void ControllerInterface::Shutdown()
ciface::Quartz::DeInit();
#endif
#ifdef CIFACE_USE_SDL
// TODO: there seems to be some sort of memory leak with SDL, quit isn't freeing everything up
SDL_Quit();
ciface::SDL::DeInit();
#endif
#ifdef CIFACE_USE_ANDROID
// nothing needed