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

Register an event that runs when user clicks mouse.

since

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

kaplay logo

Misc