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

x/evt/lib/types/index.ts>dom.DeviceMotionEvent

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

The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.

Properties

readonly
acceleration: DeviceMotionEventAcceleration | null
readonly
accelerationIncludingGravity: DeviceMotionEventAcceleration | null
readonly
interval: number
readonly
rotationRate: DeviceMotionEventRotationRate | null