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.

Jump to: Statements Referenced by

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 NERFINISHED
Edge NERFINISHED
Firefox NERFINISHED
Safari (partial or behind flags, depending on version) NERFINISHED
buttonValuesRange 0.0 to 1.0
documentationAvailableAt MDN Web Docs NERFINISHED
earlyImplementationsAppearedIn Chrome NERFINISHED
Firefox NERFINISHED
Opera NERFINISHED
enables access to game controllers in web pages
eventModel connection and disconnection events
exposes Gamepad interface
GamepadButton interface NERFINISHED
GamepadEvent interface NERFINISHED
gamepadconnected event
gamepaddisconnected event
navigator.getGamepads() method
hasSpecificationStatus W3C Recommendation NERFINISHED
identifiesGamepadsBy id string
index property
initialStateAccessedVia navigator.getGamepads()
isAccessibleFrom JavaScript running in the browser
isDesignedFor interactive web applications
web games
isPartOf Open Web Platform NERFINISHED
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 NERFINISHED
Pointer Lock API NERFINISHED
WebHID API NERFINISHED
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 NERFINISHED
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

Referenced by (3)

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