Skip to content

@relu-interactives/spatial-ecs


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

Function: bindingLabel() ​

ts
function bindingLabel(binding, options?): string;

Defined in: input/bindings.ts:155

How a binding reads on screen: "Space", "Left Click", "A" or "✕", "WASD", "Left Stick". symbol gives PlayStation's shapes instead of their names.

Parameters ​

ParameterType
bindingstring
options{ family?: GamepadFamily; symbol?: boolean; touchLabel?: TouchLabelLookup; }
options.family?GamepadFamily
options.symbol?boolean
options.touchLabel?TouchLabelLookup

Returns ​

string