import { type Gamepad } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";
This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. Available only in secure contexts.
Properties
readonly
buttons: ReadonlyArray<GamepadButton>readonly
hapticActuators: ReadonlyArray<GamepadHapticActuator>readonly
mapping: GamepadMappingTypereadonly
timestamp: DOMHighResTimeStamp