Cool! Does that use the Gamepad API or WebHID? I'd like to get one working in the browser for one of my projects
The only weird part about the Gamepad API is that you have to poll it rather than handling events the way you normally would for other, similar stuff in JavaScript. In practice, this means that you have to do your own debouncing for handling things like key combos, but that doesn't really affect individual button presses too much.
It might be worth trying with WebHID instead of the GamePad API. Quick example with a joystick :)