Open ejelly opened 4 years ago
That would be something within the SDL/SDL2 library to examine where the support code lives. Worst case scenario it might not be possible, unless there's a light overhead method to detect disconnect and trigger re-enumeration and a way to identify the exact same joystick.
I use a bluetooth gamepad which unfortunately has the tendency to turn itself off if no button has been pressed for a while. Under macOS at least, reconnecting the gamepad does not reconnect it to dosbox-x: I have to restart dosbox for it to recognize the joystick again. This is rather annoying when playing flight simulators (like Microsoft Flight Simulator 4), as long flights often require no joystick inputs for prolonged times.