Event.EventAcceleration 类型

继承于 Event

模块: cc

加速度事件

索引

属性(properties)
方法

Details

属性(properties)

type

事件类型。

meta description
类型 String
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:43
bubbles

表示该事件是否进行冒泡。

meta description
类型 Boolean
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:51
target

最初事件触发的目标

meta description
类型 Object
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:59
currentTarget

当前目标

meta description
类型 Object
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:67
eventPhase

事件阶段

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:75

方法

constructor
meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:37
参数列表
  • type String The name of the event (case-sensitive), e.g. "click", "fire", or "submit"
  • bubbles Boolean A boolean indicating whether the event bubbles up through the tree or not
unuse

重置对象池中存储的事件。

meta description
返回 String
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:110
reuse

用于对象池再次使用的事件。

meta description
返回 String
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:125
stopPropagation

停止传递当前事件。

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:136
stopPropagationImmediate

立即停止当前事件的传递,事件甚至不会被分派到所连接的当前目标。

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:145
isStopped

检查该事件是否已经停止传递.

meta description
返回 Boolean
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:155
getCurrentTarget

获取当前目标节点

meta description
返回 Node
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:165
getType

获取事件类型

meta description
返回 String
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/event/event.js:180

条与 "" 相匹配的结果

    没有与 "" 匹配的结果