Web Gamepad API

await navigator.getGamepads()
window.addEventListener('gamepadconnected', ...)