onMouseEvent

abstract fun onMouseEvent(obj: ZObject, event: ZMouseEvent)(source)

Called when a mouse event occurs for the associated ZObject.

Parameters

obj

The ZObject that this listener is attached to

event

The mouse event containing position, movement, velocity, and acceleration data