About CCTouchDelegate question!

About CCTouchDelegate question!
0.0 0


I see the class CCTouchDelegate. there are “ccTouchBegan”, “ccTouchMoved”, “ccTouchEnded”, and “ccTouchCancelled”, and why “ccTouchBegan” return bool, others return void? and when call
“ccTouchCancelled” ?
where is the article about cocos2d CCTouchDelegate?


There are two types of touch delegate, target and standard. Target delegate can swallow the touch event if ccTouchBegan return true. Standard delegate can not swallow the touch event.

For detail implementation, you can refer CCTouchDispatcher::touches().


Here’s the document on cocos2d-iphone.org website