Skip to content

API Variable InputGlyphs

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

Variable: InputGlyphs

const InputGlyphs: object;

Defined in: src/engine/input/glyphs.ts:345

The engine's default button glyphs (ADR 0337), for the icon keys prompts give.

const prompt = this.input.prompt("jump")!;
hint.getComponent(UIImage)!.image = InputGlyphs.get(prompt.icons[0])!.asset;

Type Declaration

get()

get(icon): InputGlyph | null;

The glyph for an icon key (xbox/buttonSouth, keyboard/space, pointer/button0), or null for a key outside the set.

Parameters

icon

string

Returns

InputGlyph | null

of()

of(prompt): InputGlyph[];

The glyphs of a prompt's controls, in order (those outside the set left out).

Parameters

prompt

InputPrompt

Returns

InputGlyph[]

Clone this wiki locally