Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 Gamepad Support #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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