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.
Documentation Gamepad by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
read onlybuttons:Array<GamepadButton>
An array of gamepadButton
objects representing the buttons present on the device.
read onlymapping:GamepadMappingType
A string indicating whether the browser has remapped the controls on the device to a known layout.