Skip to content

API Interface InputPrompt

github-actions[bot] edited this page Nov 29, 2026 · 3 revisions

Interface: InputPrompt

Defined in: src/engine/input/prompts.ts:16

What a prompt shows.

Properties

context

readonly context: string;

Defined in: src/engine/input/prompts.ts:33

The context whose mapping it shows (RebindOptions.context).


controls

readonly controls: readonly string[];

Defined in: src/engine/input/prompts.ts:20

The mapping's controls (several for a composite: up, down, left, right).


family

readonly family: DeviceFamily;

Defined in: src/engine/input/prompts.ts:18

The family it's named for.


icons

readonly icons: readonly string[];

Defined in: src/engine/input/prompts.ts:25

An icon key for each control: <family>/<control>, e.g. xbox/buttonSouth, keyboard/space.


label

readonly label: string;

Defined in: src/engine/input/prompts.ts:23


labels

readonly labels: readonly string[];

Defined in: src/engine/input/prompts.ts:22

A label for each control, and all of them joined ("W/S/A/D").


parts

readonly parts: readonly string[];

Defined in: src/engine/input/prompts.ts:31

The rebind part of each control (RebindOptions.part): control for a single control, up, down, left, right for a d-pad composite, negative, positive for an axis composite, modifier0… then control for a chord.

Clone this wiki locally