Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GamepadButton

An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. Available only in secure contexts.

interface GamepadButton {
readonly pressed: boolean;
readonly touched: boolean;
readonly value: number;
}
var GamepadButton: {
prototype: GamepadButton;
new (): GamepadButton;
}
;

§Properties

§
readonly pressed: boolean
[src]
§
readonly touched: boolean
[src]
§
readonly value: number
[src]