Class cc.Event
- Defined in: CCEvent.js
- Extends cc.Class
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Event()
Base class of all kinds of events.
|
Method Summary
Class Detail
cc.Event()
Base class of all kinds of events.
Method Detail
-
{cc.Node} getCurrentTarget()
Gets current target of the event
note: It only be available when the event listener is associated with node.
It returns 0 when the listener is associated with fixed priority.- Returns:
- {cc.Node} The target with which the event associates.
-
{number} getType()Gets the event type
- Returns:
- {number}
-
{boolean} isStopped()Checks whether the event has been stopped
- Returns:
- {boolean}
-
stopPropagation()Stops propagation for current event