Skip to content

API Interface RebindResult

github-actions[bot] edited this page Dec 1, 2026 · 4 revisions

Interface: RebindResult

Defined in: src/engine/input/rebind.ts:49

Properties

action

readonly action: string;

Defined in: src/engine/input/rebind.ts:51


canceled

readonly canceled: boolean;

Defined in: src/engine/input/rebind.ts:54


chord

readonly chord: readonly string[];

Defined in: src/engine/input/rebind.ts:58

A chord rebind's controls, modifiers first (modifier0…) then the main control, as bound. Empty for other rebinds.


conflicts

readonly conflicts: readonly string[];

Defined in: src/engine/input/rebind.ts:60

Other mappings now using the control, in any context the player could have active, as "<context>: <action>"; the rebound mapping too when another of its parts reads it (a composite's Up and Down on one key).


control

readonly control: string | null;

Defined in: src/engine/input/rebind.ts:53

The new control path (a chord's main control); null when canceled.


player

readonly player: GameObject;

Defined in: src/engine/input/rebind.ts:50


reason

readonly reason: RebindCancelReason | null;

Defined in: src/engine/input/rebind.ts:56

Why it was canceled; null when it bound.

Clone this wiki locally