All specs
W3C GamepadW3CNicheProduct

Gamepad API

Input & Interaction·World Wide Web Consortium
WHY YOU NEED THIS

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.

What It Defines

Defines the Gamepad interface for accessing game controller state: buttons (pressed, value, touched), axes (analog sticks), haptic actuators (vibration), and connection events (gamepadconnected/disconnected). Uses a polling model via navigator.getGamepads().

Canonical (Normative)

Convenient (Practical)

gamepadcontrollergaminginputbrowser
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

WICG WebHIDW3CNiche

WebHID

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.

ProductDevice Access & Sensors
Details
W3C WebXRW3CShould Know

WebXR

The standard for browser-based VR/AR: headset rendering, controller input, room-scale tracking, and AR overlays. Supports Meta Quest, Apple Vision Pro, HoloLens, and phone-based AR. Works with WebGL and WebGPU for rendering.

ProductGraphics & XR
Details