ZEventManager

Manages event listeners for a ZObject instance. This class encapsulates all listener management functionality, providing a clean API for adding, removing, and notifying listeners for touch, mouse, and keyboard events.

Constructors

Link copied to clipboard
constructor(owner: ZObject)

Properties

Link copied to clipboard

Returns whether this object has any keyboard listeners registered.

Link copied to clipboard

Returns whether this object has any mouse listeners registered.

Link copied to clipboard

Returns whether this object has any touch listeners registered.

Functions

Link copied to clipboard

Adds a keyboard event listener using a lambda function.

Adds a keyboard event listener to this object.

Link copied to clipboard

Adds a mouse event listener using a lambda function.

Adds a mouse event listener to this object.

Link copied to clipboard

Adds a touch event listener using a lambda function.

Adds a touch event listener to this object.

Link copied to clipboard

Notifies all registered keyboard listeners of a keyboard event. This method is called internally by the event distribution system.

Link copied to clipboard

Notifies all registered mouse listeners of a mouse event. This method is called internally by the event distribution system.

Link copied to clipboard

Notifies all registered touch listeners of a touch event. This method is called internally by the event distribution system.

Link copied to clipboard

Removes all keyboard event listeners from this object.

Link copied to clipboard

Removes all mouse event listeners from this object.

Link copied to clipboard

Removes all touch event listeners from this object.

Link copied to clipboard

Removes a keyboard event listener from this object.

Link copied to clipboard

Removes a mouse event listener from this object.

Link copied to clipboard

Removes a touch event listener from this object.