Gamepad
The Gamepad interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
Properties
The axes read-only property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks).
The buttons read-only property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device.
The mapping read-only property of the Gamepad interface returns a string indicating whether the browser has remapped the controls on the device to a known layout.
The timestamp read-only property of the Gamepad interface returns a DOMHighResTimeStamp representing the last time the data for this gamepad was updated.
The vibrationActuator read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller.