Skip to content

Kiln API / kiln / Binding

Type Alias: Binding ​

ts
type Binding = string;

A binding names a physical input: a KeyboardEvent.code ('KeyW', 'Space', 'ArrowLeft'), 'Mouse0'..'Mouse2', a gamepad button ('Pad:A', 'Pad:Start', 'Pad:Up', 'Pad:RT'), or a stick direction ('Pad:LX+', 'Pad:LY-', 'Pad:RX+').