@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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
id | string | - | input/touchControls.ts:14 |
label? | string | Short text on the button. Defaults to a name made from the id. | input/touchControls.ts:16 |
icon? | string | Inline SVG markup drawn instead of the label. Built-in icons exist for common ids. | input/touchControls.ts:18 |

