onMouseDown(button: MouseButton | MouseButton[], action: (m: MouseButton)=>void): KEventController

Register an event that runs every frame when certain mouse buttons are being held down.

since

onMouseDown(action: (m: MouseButton)=>void): KEventController

kaplay logo

Misc