WebHID

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 May 23 5:13
Editor
Edited
Edited
2023 Apr 28 16:0
Refs
Refs

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.
Connecting to uncommon HID devices
 
 

Recommendations