title: Using ccTouchBegan and ccTouchesEnded at the same time in Cocos2dx
body: <p>Can I use <code>ccTouchBegan</code> and <code>ccTouchesEnde</code>d at the same time?
  When I'm trying to add actions in <code>ccTouchBegan</code>, I recognize that <code>ccTouchesEnded</code> isn't called. Can anyone explain for me how to use touch events?</p>
  
  <p>Some of my code</p>
  
  <pre><code>bool GameplayScene::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent){       
      CCActionInterval*  actionBy = CCRotateBy::create(1, 180);
      weapon-&gt;runAction(CCSequence::create(actionBy, NULL, NULL));
  
      location = pTouch-&gt;getLocation();
      shootBullet();
      this-&gt;schedule(schedule_selector(GameplayScene::shootBullet), 1.0);     
          return true;
  }
  
  void GameplayScene::ccTouchesEnded(cocos2d::CCSet* touches, cocos2d::CCEvent* event){
      this-&gt;unschedule(schedule_selector(GameplayScene::shootBullet));        
  }
  
  void GameplayScene::registerWithTouchDispatcher(void) {
      CCDirector::sharedDirector()-&gt;getTouchDispatcher()-&gt;addTargetedDelegate(this, INT_MIN + 1, true);
  }
  </code></pre>