Function

onMouseRelease

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

Register an event that runs when user releases mouse.

param action- The function to run when the event is triggered.

returns The event controller.

since v3001.0

group Input

Function

onMouseRelease

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

Layer

Miscalenous