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

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

parambtn- The button(s) to listen for.

returnsThe event controller.

sincev3001.0

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

kaplay logo

Misc

Layer