Skip to content

@relu-interactives/spatial-ecs


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

Function: gamepadButtonIndex() ​

ts
function gamepadButtonIndex(name): number;

Defined in: input/gamepad.ts:66

A standard-mapping index from a name ("south", "a", "cross", "rt") or a number.

Parameters ​

ParameterType
namestring | number

Returns ​

number