nx.js
Classes

Gamepad

Defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.

See

https://developer.mozilla.org/docs/Web/API/Gamepad

Implements

Properties

PropertyModifierTypeDescription
axesreadonlyreadonly number[]MDN Reference
buttonsreadonlyreadonly GamepadButton[]MDN Reference
connectedreadonlybooleanMDN Reference
deviceTypereadonlynumber-
idreadonlystringMDN Reference
indexreadonlynumberMDN Reference
mappingreadonlyGamepadMappingTypeMDN Reference
rawButtonsreadonlybigint-
styleSetreadonlynumber-
timestampreadonlynumberMDN Reference
vibrationActuatorreadonlyGamepadHapticActuatorMDN Reference

On this page