Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / TouchButtonConfig

Type Alias: TouchButtonConfig ​

ts
type TouchButtonConfig = {
  id: string;
  label?: string;
  icon?: string;
};

Defined in: input/touchControls.ts:13

One on-screen button. id is what bindings name: touch:<id>.

Properties ​

PropertyTypeDescriptionDefined in
idstring-input/touchControls.ts:14
label?stringShort text on the button. Defaults to a name made from the id.input/touchControls.ts:16
icon?stringInline SVG markup drawn instead of the label. Built-in icons exist for common ids.input/touchControls.ts:18