Interface OrientationEvent

A device orientation event payload.

Modeled after https://developer.mozilla.org/de/docs/Web/API/DeviceOrientationEvent.

Hierarchy

  • BaseInputEvent<"orientation">
    • OrientationEvent

Properties

absolute: boolean

Whether the device provides absolute orientation data.

alpha: number

The motion of the device around the z-axis, in degrees from 0 (inclusive) to 360 (exclusive).

beta: number

The motion of the device around the x-axis (front to back motion), in degrees from -180 (inclusive) to 180 (exclusive).

gamma: number

The motion of the device around the y-axis (left to right motion), in degrees from -90 (inclusive) to 90 (exclusive).

source: string | number

The identifier, unique per client + device combo.

type: "orientation"

The event type.

Generated using TypeDoc