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

x/evt/mod.ts>dom.DeviceAcceleration

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

Provides information about the amount of acceleration the device is experiencing along all three axes.

Properties

readonly
x: number | null
readonly
y: number | null
readonly
z: number | null