buttons

The buttons property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device.

MDN Reference