Here is the code:
CCTouch* touch = (CCTouch*)( touches->anyObject() );
CCPoint location = touch->locationInView(touch->view());
What's wrong?
EDIT:
I think the following is set here:
Why is the following code broken into the new version of cocos2d-1.0.1-x-0.13.0-beta cocos2d-x, while it works fine in cocos2d-1.0.1-x-0.12.0?
CCTouch* touch = (CCTouch*)( touches->anyObject() );
CCPoint location = touch->locationInView(touch->view());
The answer is that the locationInView () method no longer takes an argument. The correct code is:
CCTouch* touch = (CCTouch*)( touches->anyObject() );
CCPoint location = touch->locationInView();
source
share