Variables
Const BlockEvents
Block
Events: SystemEventType[] = [SystemEventType.TOUCH_START, SystemEventType.TOUCH_END, SystemEventType.TOUCH_MOVE,SystemEventType.MOUSE_DOWN, SystemEventType.MOUSE_MOVE, SystemEventType.MOUSE_UP,SystemEventType.MOUSE_ENTER, SystemEventType.MOUSE_LEAVE, SystemEventType.MOUSE_WHEEL]
Const EventTarget
EventTarget: {} = Eventify(Empty)
Let accelerationListener
accelerationListener: EventListener | null = null
Let keyboardListener
keyboardListener: EventListener | null = null
Let mouseListener
mouseListener: EventListener | null = null
Let touchListener
touchListener: EventListener | null = null
EventTarget is an object to which an event is dispatched when something has occurred. Nodes are the most common event targets, but other objects can be event targets too. If a class cannot extend from EventTarget, it can consider using Eventify.
事件目标是具有注册监听器、派发事件能力的类,Node 是最常见的事件目标, 但是其他类也可以继承自事件目标以获得管理监听器和派发事件的能力。 如果无法继承自 EventTarget,也可以使用 Eventify