Skip to content

Conversation

@bbbbbr
Copy link

@bbbbbr bbbbbr commented Oct 26, 2019

Hi,

I recently added HTML5 gamepad support to a fork of your JS GB emulator (see link below), and saw that you have a JS GBA emulator as well.

This pull request has an initial gamepad support, though I wasn't sure how to organize some of the code so that it would fit within the structure you have.

No worries if you don't want to merge, but sharing in case you might be interested.

Pull request for GB emulator:
chrismaltby/gb-studio#305

  • When w3c "standard" mapping is available for the gamepad, buttons will map to the expected locations Otherwise the first 6 buttons map to A/B/Select/Start/L/R.

  • Gamepad polling only runs when a gamepad is connected to the browser window

  • Tested in FF & Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant