For me this solution doesn't work when testing the game locally. On Firefox, I get an "Uncaught TypeError: event.gamepad is undefined" log. I'm not sure what's different about the NG HTML environment that makes it work. I'm also unsure how I would implement this in Phaser 3; Could I use this configuration with Phaser's gamepad API?
BobbyBurt
For me this solution doesn't work when testing the game locally. On Firefox, I get an "Uncaught TypeError: event.gamepad is undefined" log. I'm not sure what's different about the NG HTML environment that makes it work. I'm also unsure how I would implement this in Phaser 3; Could I use this configuration with Phaser's gamepad API?