Disable input device polling code to resolve freeze after ~45 minutes.

See issue #87.
This commit is contained in:
Aloshi 2013-06-26 23:25:58 -05:00
parent 6f9ea15696
commit 4a1206aee2

View file

@ -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);