All specs
WICG WebHIDW3CNicheProduct

WebHID API

Device Access & Sensors·World Wide Web Consortium
WHY YOU NEED THIS

Enables web apps to access HID devices that the Gamepad API doesn't cover: custom controllers, macro pads, LED strips, barcode scanners, and specialized input devices. Complements Gamepad API for non-standard controllers.

What It Defines

Defines navigator.hid.requestDevice() for accessing Human Interface Devices: game controllers, keyboards, LED controllers, and other HID-class USB/Bluetooth devices. Supports device filters, input/output/feature reports, and the oninputreport event for receiving data.

Canonical (Normative)

Convenient (Practical)

hidcontrollerhardwareinputdevice-accessbrowser
Standards Body
World Wide Web Consortium

Publishes web platform specs including CSS, accessibility, security policies, Service Workers, Web App Manifest, and many browser APIs. Also maintains some versioned HTML/DOM specs.

Visit

Related Specs

W3C GamepadW3CNiche

Gamepad

Required for web-based games and interactive experiences. The polling model (no events for button presses) means you need a requestAnimationFrame loop. Supports Xbox, PlayStation, Switch Pro, and generic HID controllers.

ProductInput & Interaction
Details
WICG WebUSBW3CNiche

WebUSB

Enables web-based firmware updates, microcontroller programming (Arduino, ESP32), and custom USB device control without native drivers. Chrome-only but the only web path to raw USB access.

ProductDevice Access & Sensors
Details
W3C PermissionsW3CMust Know

Permissions

The gating mechanism for every sensitive browser API. Check permission state before requesting access to avoid unexpected prompt dialogs. The change event lets you react when users revoke permissions in browser settings.

ProductDevice Access & Sensors
Details