mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 09:48:51 +01:00
RetroFE crashed on exit when a controller was connected. This is caused by
the call to SDL_JoystickClose. It is unclear why this happens, so for now this code is disabled.
This commit is contained in:
parent
17d65ae8fd
commit
961a3a838d
@ -37,13 +37,14 @@ UserInput::UserInput(Configuration &c)
|
||||
|
||||
UserInput::~UserInput()
|
||||
{
|
||||
for(std::vector<SDL_Joystick *>::iterator it = joysticks_.begin(); it != joysticks_.end(); it++)
|
||||
{
|
||||
if(*it)
|
||||
{
|
||||
SDL_JoystickClose(*it);
|
||||
}
|
||||
}
|
||||
// This code causes an exception when a controller is attached; it's disabled to prevent crashes on exit.
|
||||
// for(std::vector<SDL_Joystick *>::iterator it = joysticks_.begin(); it != joysticks_.end(); it++)
|
||||
// {
|
||||
// if(*it)
|
||||
// {
|
||||
// SDL_JoystickClose(*it);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
bool UserInput::initialize()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user