I want to know how Cocos2d-x Touch Handler and ccTouchEnd operate, because I am having following problem:
Whenever I press the phone screen, “ccTouchesEnded” method is being called automatically while that was not my intention.
To identify the problem, I checked the break point.
“CCTouchDispatcher::touchesEnded” method was called by “CCEGLViewProtocol::handleTouchesEnd” method,
“CustomClass :: ccTouchesEnded” method was called by the “CCTouchDispatcher::touchesEnded” method.
So as a result, “CCEGLViewProtocol :: handleTouchesEnd” is automatically being called even though my finger was still on the screen.
My questions is, why is “CCEGLViewProtocol :: handleTouchesEnd” method called automatically, and how can I solve this problem?
Thanks for reading and thank you for your help everyone!