human interface devices
like nintendo switch joy-con
if ("hid" in navigator) { // Filter on devices with the Nintendo Switch Joy-Con USB Vendor/Product IDs. const filters = [ { vendorId: 0x057e, // Nintendo Co., Ltd productId: 0x2006 // Joy-Con Left }, { vendorId: 0x057e, // Nintendo Co., Ltd productId: 0x2007 // Joy-Con Right } ]; // Prompt user to select a Joy-Con device. const [device] = await navigator.hid.requestDevice({ filters }); }
Connecting to uncommon HID devices
The WebHID API allows websites to access alternative auxiliary keyboards and exotic gamepads.
https://web.dev/hid/


Seonglae Cho