I’ve just tried to unplug a gamepad while playing, and it caused an UnhandledExceptionFilter when bge.logic.joysticks is polled. This is pretty fair enough, but I wonder if there’s a way to handle this sort of behavior without a fatal failure.
Is there a proper way to handle users plugging and unplugging controllers during gameplay?
with new SDL2 it is possible. I’m currently implementing in the BGE. Maybe, in the next weeks/month will be available. (see https://developer.blender.org/D1484)