Leandro Oliveira Problem with setIsTouchEnabled/ccTouchEnded
Posts 10
Added by Leandro Oliveira 11 months ago

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, CCEvent *pEvent)" no is called. Anyone had this problem? It's necessary to call another function beyond setIsTouchEnabled function? Thanks

Zhe Wang RE: Problem with setIsTouchEnabled/ccTouchEnded
Posts 1642
Location Amoy, China
Added by Zhe Wang 11 months ago

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

Enjoy Coding, Enjoy Life.

Leandro Oliveira RE: Problem with setIsTouchEnabled/ccTouchEnded
Posts 10
Added by Leandro Oliveira 11 months ago

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


(1-2/2)