From 6ef9bbed1c826efeecc29b59debd36bcc8550b55 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 30 Dec 2013 16:36:52 -0600 Subject: [PATCH] Fixed issue with hotplugging when no controllers are detected at startup. SDL events were not being read when no controllers were detected when the program was launched. Changed event loop to not rely on the joystick count. --- src/inputdaemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputdaemon.cpp b/src/inputdaemon.cpp index 5337c38a..6e345c09 100644 --- a/src/inputdaemon.cpp +++ b/src/inputdaemon.cpp @@ -55,7 +55,7 @@ void InputDaemon::run () event.type = SDL_NOEVENT; #endif - if (joysticks->count() > 0 && !stopped) + if (!stopped) { event = eventWorker->getCurrentEvent();