Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/mod.ts>dom.GamepadButton

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.GamepadButton
import { type dom } from "https://deno.land/x/evt@v2.4.20/mod.ts";
const { GamepadButton } = dom;

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.

Properties

readonly
pressed: boolean
readonly
touched: boolean
readonly
value: number