pressed

external val pressed: Boolean(source)

The GamepadButton.pressed property of the GamepadButton interface returns a boolean indicating whether the button is currently pressed (true) or unpressed (false).

MDN Reference