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

x/evt/lib/index.ts>dom.GamepadPose

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

This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.)

Properties

readonly
angularAcceleration: Float32Array | null
readonly
angularVelocity: Float32Array | null
readonly
hasOrientation: boolean
readonly
hasPosition: boolean
readonly
linearAcceleration: Float32Array | null
readonly
linearVelocity: Float32Array | null
readonly
orientation: Float32Array | null
readonly
position: Float32Array | null