Problem with setIsTouchEnabled/ccTouchEnded

Problem with setIsTouchEnabled/ccTouchEnded
0.0 0


Hello, guys!

When I add the line “this->setIsTouchEnabled(true);” on function init in a Layer (HelloWorld XCode template) the function “virtual void ccTouchEnded (CCTouch pTouch, CCEventpEvent)” no is called. Anyone had this problem? It’s necessary to call another function beyond setIsTouchEnabled function? Thanks


ccTouchesEnded will be called.
Note the “es” after “Touch”.
Also there’re differences between standard touch delegate and targeted touch delegate.


Thanks! It`s fixed. I`ll read more about touch delegates. [: