pokemon-speedrunning / gambatte-speedrun

Fork of https://github.com/sinamas/gambatte with Pokemon speedrunning-related changes.
GNU General Public License v2.0
94 stars 27 forks source link

Background input for Xbox 360 and Xbox One controllers #18

Open cryxia opened 5 years ago

cryxia commented 5 years ago

I've been trying to get background input for gamepads working - it's annoying to have to refocus the emulator when going to mark goals on a bingo card for example.

The only problem is that the SDL library used for gamepad input on windows is based on SDL1.5, which uses a very old api that doesn't seem to support background input out of the box. I tried some quick hacks to get it working (joystickCapture(...)) but that didn't really work.

In anycase I want to discuss what the best way forward is. There a few options that I can see:

All of these options are a lot of work so I want to get everyone's feedback on what options to pursue - I'd rather work on an option that is most likely to be accepted in a pull request after all. Of course there may be other options I've missed as well...

Dabomstew commented 5 years ago

As far as I'm aware, background input for any gamepad that isn't a Xbox 360 or Xbox One controller should already work. Is the goal here to fix that particular case?

cryxia commented 5 years ago

Hah, I'm using an xbox one controller.... let me try some others and see if they work...

cryxia commented 5 years ago

Ah, ok. I guess my other controllers work for this, so this isn't that high a priority. Would still be nice to get xbox controllers working though...

entrpntr commented 4 years ago

Renamed and reopened just to track that this is still an issue for Xbox controllers (though the priority for fixing remains unclear).