mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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);
|
SDL_JoystickEventState(SDL_ENABLE);
|
||||||
|
|
||||||
//start timer for input device polling
|
//start timer for input device polling
|
||||||
devicePollingTimer = SDL_AddTimer(POLLING_INTERVAL, devicePollingCallback, (void *)this);
|
//devicePollingTimer = SDL_AddTimer(POLLING_INTERVAL, devicePollingCallback, (void *)this);
|
||||||
|
|
||||||
loadConfig();
|
loadConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputManager::deinit()
|
void InputManager::deinit()
|
||||||
{
|
{
|
||||||
SDL_RemoveTimer(devicePollingTimer);
|
//SDL_RemoveTimer(devicePollingTimer);
|
||||||
|
|
||||||
SDL_JoystickEventState(SDL_DISABLE);
|
SDL_JoystickEventState(SDL_DISABLE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue