title: Detect touch Cocos2d-x
body: <p>I'm using Cocos2d-x and trying to detect touches in my HelloWorld project. Though I'm having no luck.</p>
  
  <p>.h</p>
  
  <pre><code>class HelloWorld : public CCLayer{
  
  private:
      CCSpriteBatchNode * _batchNode;
      CCSprite *_turkey;
      virtual void ccTouchesBegan(cocos2d::CCSet* touches, cocos2d::CCEvent* event);
  </code></pre>
  
  <p>.ccp</p>
  
  <pre><code>void HelloWorld::ccTouchesBegan(cocos2d::CCSet* touches, cocos2d::CCEvent* event){
      CCLog("this");
  }
  </code></pre>
  
  <p>but the thing is that when I click the screen 'this' never shows up in the log. What am i missing here?</p>
  
  <p>thanks!</p>
  
  <p>Edit,</p>
  
  <p>Im using this tutorial. 
  <a href="http://www.raywenderlich.com/11338/cocos2d-x-for-ios-and-android-space-game">http://www.raywenderlich.com/11338/cocos2d-x-for-ios-and-android-space-game</a></p>