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

This reverts commit 4a1206aee2.
This commit is contained in:
Aloshi 2013-06-29 07:30:32 -05:00
parent 4a1206aee2
commit d986d739b2

View file

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