Skip to content

@relu-interactives/spatial-ecs


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

Function: gamepadButtonLabel() ​

ts
function gamepadButtonLabel(family, button): string;

Defined in: input/gamepad.ts:101

What a button is called on this kind of pad: "A", "Cross", "RT", "Options".

Parameters ​

ParameterType
familyGamepadFamily
buttonstring | number

Returns ​

string