So I’m not sure why, but none of my ccTouches__ functions work. I do exactly what the tutorial says to do which is…
void GameScene::ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent)
{
// Choose one of the touches to work with.
CCTouch* touch = (CCTouch*)(pTouches->anyObject());
CCPoint location = touch->locationInView(touch->view());
location = CCDirector::sharedDirector()->convertToGL(location);
}
I have this for each of the Began, Moved, and Ended.
But when I put a breakpoint inside there it doesn’t hit it.
In the init I even do this->setIsTouchEnabled(true);
.
Any help?