Gamepad API

E856214

The Gamepad API is a web standard that lets websites detect and respond to input from game controllers and other gamepad-like devices in real time.

All labels observed (2)

Label Occurrences
Gamepad API canonical 5
GamepadEvent interface 1

How this entity was disambiguated

Statements (51)

Predicate Object
instanceOf W3C specification
Web API
browser feature
allows real-time polling of gamepad state
axisValuesRange -1.0 to 1.0
browserSupportIncludes Chrome
linked to: Google Chrome

Edge
Firefox
linked to: Mozilla Firefox

Safari (partial or behind flags, depending on version)
linked to: Safari
buttonValuesRange 0.0 to 1.0
documentationAvailableAt MDN Web Docs
earlyImplementationsAppearedIn Chrome
linked to: Google Chrome

Firefox
linked to: Mozilla Firefox

Opera
enables access to game controllers in web pages
eventModel connection and disconnection events
exposes Gamepad interface
GamepadButton interface
GamepadEvent interface
linked to: Gamepad API

gamepadconnected event
gamepaddisconnected event
navigator.getGamepads() method
hasSpecificationStatus W3C Recommendation
identifiesGamepadsBy id string
index property
initialStateAccessedVia navigator.getGamepads()
isAccessibleFrom JavaScript running in the browser
isDesignedFor interactive web applications
web games
isPartOf Open Web Platform
mappingValue standard
pollingModel game loop polling of gamepad state
primaryUse detecting gamepad input in web applications
provides mapping property for standard layout
relatedTo Fullscreen API
Pointer Lock API
WebHID API
representsAxesAs array of axis values
representsButtonsAs array of GamepadButton objects
requires user interaction before reading gamepad state in some browsers
securityModelIncludes permission-like user gestures in some implementations
same-origin policy
standardizedBy W3C
supports game controllers
gamepad-like devices
multiple connected gamepads
supportsUseCase detecting controller connection
detecting controller disconnection
mapping controller input to in-game actions
reading analog stick positions
reading trigger pressure

How these facts were elicited

Referenced by (6)

Full triples — surface form annotated when it differs from this entity's canonical label.

Open Web Platform hasComponent Gamepad API
Gamepad API exposes GamepadEvent interface
linked to: Gamepad API
WebXR relatedStandard Gamepad API
subject linked to: WebVR / WebXR APIs
Pointer Lock API relatedTo Gamepad API