mpizenberg / elm-videoball

Minimalist elm implementation of the game videoball (not affiliated to official game)
https://mpizenberg.github.io/elm-videoball/
Mozilla Public License 2.0
4 stars 1 forks source link

Make gamepad controllers work in Firefox #10

Open mpizenberg opened 6 years ago

mpizenberg commented 6 years ago

It currently doesn't. We should investigate if it is actually an elm-gamepad issue.

mpizenberg commented 6 years ago

It appears to be related to how elm-gamepad treat mappings. If it is detected as "standard" like in Chromium for ps4 in my case, it works. If however it is empty string "" then it is not added to the list in detected gamepads.

I've added a patched elm-gamepad in this repo code for now in 4b626f7d0. I should discuss with xarvh to figure this out.

xarvh commented 6 years ago

If the mapping provided by the browser is "", it means that we have no information whatsoever of what the axis and buttons arrays actually represent, and the only reliable way to ensure everyone can use a gamepad is to remap it.