import { type dom } from "https://deno.land/x/evt@v2.5.6/lib/types/index.ts";
const { Gamepad } = dom;
This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
Properties
readonly
buttons: ReadonlyArray<GamepadButton>readonly
hand: GamepadHandreadonly
hapticActuators: ReadonlyArray<GamepadHapticActuator>readonly
mapping: GamepadMappingTypereadonly
pose: GamepadPose | null