Skip to content

API Interface DeviceEvent

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: DeviceEvent

Defined in: src/engine/input/deviceEntities.ts:75

One raw device event this frame: a key, a pointer button, a gamepad button, or an axis crossing the press point.

Properties

control

readonly control: string;

Defined in: src/engine/input/deviceEntities.ts:79

The control path, e.g. <Keyboard>/space, <Gamepad>/buttonSouth, <Gamepad>/leftStickX, <Touch>/touch0, <Pen>/tip.


device

readonly device: GameObject;

Defined in: src/engine/input/deviceEntities.ts:77

The device's node.


time

readonly time: number;

Defined in: src/engine/input/deviceEntities.ts:82

performance.now() milliseconds.


value

readonly value: number;

Defined in: src/engine/input/deviceEntities.ts:80

Clone this wiki locally