mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2026-07-31 09:36:25 -04:00
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:
@@ -55,7 +55,7 @@ void InputDaemon::run ()
|
||||
event.type = SDL_NOEVENT;
|
||||
#endif
|
||||
|
||||
if (joysticks->count() > 0 && !stopped)
|
||||
if (!stopped)
|
||||
{
|
||||
event = eventWorker->getCurrentEvent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user