From 4a1206aee28705232308024ce4c03f39b96478fa Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 26 Jun 2013 23:25:58 -0500 Subject: [PATCH] Disable input device polling code to resolve freeze after ~45 minutes. See issue #87. --- src/InputManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InputManager.cpp b/src/InputManager.cpp index 5df74a951..ae81962f1 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);