Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>Gamepad

Advanced Web Composition for Future
Latest
interface Gamepad
import { type Gamepad } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

This Gamepad API export interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.

Properties

readonly
axes: ReadonlyArray<number>
readonly
buttons: ReadonlyArray<GamepadButton>
readonly
connected: boolean
readonly
hand: GamepadHand
readonly
hapticActuators: ReadonlyArray<GamepadHapticActuator>
readonly
id: string
readonly
index: number
readonly
mapping: GamepadMappingType
readonly
pose: GamepadPose | null
readonly
timestamp: number