HTML5 Gamepad Support
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: https://github.com/chrismaltby/gb-studio/pull/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