Open cvan opened 7 years ago
Good reference: https://gist.github.com/donmccurdy/cf336a8b88ba0f10991d4aab936cc28b
Also, see our gamepad-plus library
gamepad-plus
It's also worth noting that the Gamepad API (navigator.getGamepads()) can be polyfilled on iOS from a native app containing a browser webview using the awesome Ejecta library (repo).
navigator.getGamepads()
Here's a good writeup just published by Don: https://www.donmccurdy.com/2017/01/25/gamepad-support-on-the-web/
Good reference: https://gist.github.com/donmccurdy/cf336a8b88ba0f10991d4aab936cc28b