onButtonDown(btn: TButton | TButton[], action: (btn: TButton)=>void): KEventController

Register an event that runs when user press a defined button (like "jump") on any input (keyboard, gamepad).

sincev3001.0

onButtonDown(action: (btn: TButton)=>void): KEventController

kaplay logo

3001.0.0-alpha.18

Misc