mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
Disable input device polling code to resolve freeze after ~45 minutes.
See issue #87.
This commit is contained in:
parent
6f9ea15696
commit
4a1206aee2
|
@ -165,14 +165,14 @@ void InputManager::init()
|
|||
SDL_JoystickEventState(SDL_ENABLE);
|
||||
|
||||
//start timer for input device polling
|
||||
devicePollingTimer = SDL_AddTimer(POLLING_INTERVAL, devicePollingCallback, (void *)this);
|
||||
//devicePollingTimer = SDL_AddTimer(POLLING_INTERVAL, devicePollingCallback, (void *)this);
|
||||
|
||||
loadConfig();
|
||||
}
|
||||
|
||||
void InputManager::deinit()
|
||||
{
|
||||
SDL_RemoveTimer(devicePollingTimer);
|
||||
//SDL_RemoveTimer(devicePollingTimer);
|
||||
|
||||
SDL_JoystickEventState(SDL_DISABLE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue