EventHandlers
class EventHandlers
Holds a map of event handlers by their EventType.
Application developers do not need to use this class directly, unless they have a non-Node class which requires event handling, and multiple event handlers can be associated with a single EventType.
There may be multiple handlers for a single EventType, in which case they are handled in the order they were added. If one of them consumes the event, then the process stops (i.e. later handlers do not fire).
Functions
Link copied to clipboard
fun <E : Event> add(eventType: EventType<E>, handler: EventHandler<E>, combination: HandlerCombination)