GamepadButton.pressed
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年3月.
GamepadButton
接口下的 GamepadButton.pressed
属性返回一个表示按钮当然是被按下了 (true
) 还是没有被按下 (false
) 的布尔值。