tomayac’s avatartomayac’s Twitter Archive—№ 16,546

  1. …in reply to @voxpelli
    @voxpelli @Vincent_Scheib The Gamepad API does give you info about the connected gamepads. You rather do it the other way round: in WebHID (and all other browser hardware APIs actually [apart maybe from Bluetooth scanning]), you filter for only the device(s) you’re interested in: github.com/tomayac/joy-con-webhid/blob/098633a18984a5e5cbad02be716dbbce88209e12/src/index.js#L24-L33.