itch.io is community of indie game creators and players

Devlogs

Chrome has no gamepadconnected event

EELemental
A browser game made in HTML5

I've been using html5gamepad.com just off-and-on through development of EELemental. And reviewing tutorials for gamepad implementation.

All websites trying to provide guidance to implementing gamepads in HTML5 games, have code that works with Window.gamepadconnected even. Unfortunately in the latest version Chrome (Version 58.0.3029.110), this event doesn't fire.

Correction: gamepadconnected does not fire when connecting a gamepad. It *does* fire when DISconnecting a gamepad. Hey! All the tutorial web sites that want you following their guidance say there's also Window.gamepaddisconnected (https://developer.mozilla.org/en-US/docs/Web/Event...) but... yeah it doesn't ever fire.

So the gamepadconnected event fires when disconnecting a gamepad, and the gamepaddisconnected event never fires.

This is taking longer than I have patience for tonight.

Read comments (1)