joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.68k stars 381 forks source link

Joystick gone forever after disconnect #1755

Open ejelly opened 4 years ago

ejelly commented 4 years ago

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.

joncampbell123 commented 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.