Class cc.StandardTouchDelegate
Extends
cc.Class.
Defined in: CCTouchDelegateProtocol.js.
Constructor Attributes | Constructor Name and Description |
---|---|
This type of delegate is the same one used by CocoaTouch.
|
Method Attributes | Method Name and Description |
---|---|
onTouchesBegan(touches, event)
Virtual function
|
|
onTouchesCancelled(touches, event)
Virtual function
|
|
onTouchesEnded(touches, event)
Virtual function
|
|
onTouchesMoved(touches, event)
Virtual function
|
Class Detail
cc.StandardTouchDelegate()
This type of delegate is the same one used by CocoaTouch. You will receive all the events (Began,Moved,Ended,Cancelled).
Method Detail
onTouchesBegan(touches, event)
Virtual function
- Parameters:
- {Array} touches
- {event} event
onTouchesCancelled(touches, event)
Virtual function
- Parameters:
- {Array} touches
- {event} event
onTouchesEnded(touches, event)
Virtual function
- Parameters:
- {Array} touches
- {event} event
onTouchesMoved(touches, event)
Virtual function
- Parameters:
- {Array} touches
- {event} event