Touch Events
Events.TouchStart— Start a touch/click. 译:开始触摸/点击Events.TouchMove— Touch move or mouse drag. 译:触摸或移动鼠标Events.TouchEnd— End touch or click. 译:结束接触或点击。
layerA = new Layer
#Returns the event and the layer
layerA.on Events.TouchStart, (event, layer) ->
print event, layer
Touch Event Shortcuts
译:触摸事件快捷键
#For Events.TouchStart
layerA.onTouchStart ->
print "Start touch"
#For Events.TouchMove
layerA.onTouchMove ->
print "Touch move"
#For Events.TouchEnd
layerA.onTouchEnd ->
print "End touch"