title: cocos2d-x CCTouchDispatcher - no sharedDispatcher
body: <p>I'm currently porting an ObjC cocos2d game to cocos2d-x, but I'm encountering some problems when trying to create a registerWithTouchDispatcher method, at the moment I'm doing</p>
  
  <pre><code>void GameLayer::registerWithTouchDispatcher()
  {
      CCTouchDispatcher::sharedDispatcher()-&gt;addTargetedDelegate(this,0,true);
  }
  </code></pre>
  
  <p>but this gives an error 'No member named sharedDispatcher' in cocos2d::CCTouchDispatcher'.</p>
  
  <p>Is there another way that this must be done in cocos2d-x?</p>