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.
This commit is contained in:
Travis Nickles
2013-12-30 16:36:52 -06:00
parent 4e852b959d
commit 6ef9bbed1c

View File

@@ -55,7 +55,7 @@ void InputDaemon::run ()
event.type = SDL_NOEVENT;
#endif
if (joysticks->count() > 0 && !stopped)
if (!stopped)
{
event = eventWorker->getCurrentEvent();