Support for unplugged / replugged joypads

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
spontex
Snes9x White Belt
Posts: 2
Joined: Sun Apr 22, 2012 7:05 am

Support for unplugged / replugged joypads

Post 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
User avatar
BearOso
Official GTK/Linux Porter/Dev
Posts: 460
Joined: Tue Oct 02, 2007 12:50 am

Re: Support for unplugged / replugged joypads

Post 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?
spontex
Snes9x White Belt
Posts: 2
Joined: Sun Apr 22, 2012 7:05 am

Re: Support for unplugged / replugged joypads

Post by spontex »

A shortcut would be awesome. Thanks!
Post Reply