Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>GamepadButton

Deno Standard Extensions
Go to Latest
interface GamepadButton
import { type GamepadButton } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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.

Properties

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