@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / keyLabel
Function: keyLabel() ​
ts
function keyLabel(code): string;Defined in: input/bindings.ts:137
A key code as printed on the key: KeyW → W, Digit1 → 1, ShiftLeft → Shift.
Parameters ​
| Parameter | Type |
|---|---|
code | string |
Returns ​
string

