web api interface
HID
Secure contextLimited availabilityAvailable in workers
The HID interface provides methods for connecting to HID devices, listing attached HID devices and event handlers for connected HID devices.
Instance properties
This interface also inherits properties of its parent, EventTarget.
Instance methods
This interface also inherits methods of its parent, EventTarget.
getDevices()Experimental- : Returns a
Promisethat resolves with an array of connected HID devices that the user has previously been granted access to in response to arequestDevice()call.
- : Returns a
requestDevice()Experimental
Events
connectExperimental- : Fired when an HID device is connected.
disconnectExperimental- : Fired when an HID device is disconnected.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.