From d986d739b2b139b7b89cfea9d3a35a9f7b34e1f4 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sat, 29 Jun 2013 07:30:32 -0500 Subject: [PATCH] Revert "Disable input device polling code to resolve freeze after ~45 minutes." This reverts commit 4a1206aee28705232308024ce4c03f39b96478fa. --- src/InputManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InputManager.cpp b/src/InputManager.cpp index ae81962f1..5df74a951 100644 --- a/src/InputManager.cpp +++ b/src/InputManager.cpp @@ -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);