fun addOnMouseEventListener(type: MouseEventType, listener: (event: SKryptonMouseEvent) -> Unit): Unit
Adds a listener for when a mouse event occurs on this widget.
listener
- Listener used to receive this event. This lambda receives a variable
event
which contains event details.