Demo rpgjs(your demo) works on firefox, but if i try to compile the game myself, i am getting errors
Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API joypad.min.js:6:991
WebGL context was lost. utils.es.js:112
Uncaught (in promise) TypeError: joypad.on is not a function
Any ideas how to resolve? It works on Edge and Chrome