Skip to content

API Variable ActionPhase

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

Variable: ActionPhase

const ActionPhase: object;

Defined in: src/engine/input/actions.ts:29

Phase flags (<action>$phase).

Type Declaration

canceled

readonly canceled: 256 = 256;

It stopped while ongoing, without triggering.

completed

readonly completed: 128 = 128;

It stopped being triggered.

held

readonly held: 1 = 1;

Actuated: a button past the press point, an axis or vector not zero.

ongoing

readonly ongoing: 16 = 16;

Its triggers are part-way (a hold not long enough yet, a combo half done).

performed

readonly performed: 64 = 64;

It became triggered this frame (tick), or a pulse fired.

pressed

readonly pressed: 2 = 2;

Became actuated this frame (tick).

released

readonly released: 4 = 4;

Stopped being actuated this frame (tick).

started

readonly started: 8 = 8;

Its triggers started (None → Ongoing or Triggered).

triggered

readonly triggered: 32 = 32;

Its triggers are satisfied (level).

Clone this wiki locally