1681-engine / index / padLabel
Function: padLabel() ​
ts
function padLabel(binding, names?): string;Defined in: src/input/InputCapture.ts:44
How a gamepad binding reads on screen: pad:a is "A", pad:lx- "Left stick left". names overrides any (a PlayStation game's "Cross", the game's own language); a binding that is not a pad's comes back as it is.
Parameters ​
| Parameter | Type |
|---|---|
binding | string |
names | Readonly<Record<string, string>> |
Returns ​
string