Page 1 of 1

Support for unplugged / replugged joypads

Posted: Sun Apr 22, 2012 7:15 am
by spontex
Hi,
I am using snes9x under Ubuntu and am experiencing the following problem: sometimes, my kids happen to pull the joypad too strong and disconnect it.
Then, even though I reconnect it, I have to restart snes9x in order to have it properly recognized under snes9x.

Is there a way to use a reconnected joypad without restarting snes9x? A kind of "hotplug" support?

Thanks

Re: Support for unplugged / replugged joypads

Posted: Mon Apr 23, 2012 6:58 am
by BearOso
There's no available portable event system for getting notified when joysticks are connected and disconnected. Instead you have to poll, and doing this in real time causes nasty stalls. The best thing we can do is provide a shortcut, and in the GTK+ version a button or menu option, to repoll the joysticks. Would that be sufficient?

Re: Support for unplugged / replugged joypads

Posted: Mon Apr 23, 2012 7:13 am
by spontex
A shortcut would be awesome. Thanks!