Added AUTOCONNECT setting, controlling a thread that polls SDL_NumJoysticks every second; if the value doesn't match the last polled value, execute RECONNECT_CONTROLLERS.
Pretty rough implementation; regardless, it seems to work well enough.
I'm new to the project and very rusty with C++, so feel free to suggest changes.
May need additional work to slot in well for virtual controller mappings - looks like it might be detecting the new controller and cutting it off in a weird way.
Added AUTOCONNECT setting, controlling a thread that polls SDL_NumJoysticks every second; if the value doesn't match the last polled value, execute RECONNECT_CONTROLLERS.
Pretty rough implementation; regardless, it seems to work well enough.
I'm new to the project and very rusty with C++, so feel free to suggest changes.