title: Cocos2d-x 3.0 onTouchMoved not functioning
body: <p>I am trying to get touch events working in my game and onTouchDown works just fine. My problem arrises with onTouchMoved as, though it doesnt throw me any errors during compiling, it does not seem to be functional.
   I can't seem to find any documentation that helps in this case, and most methods I found online dont seem to work either. </p>
  
  <p>My Code:
  LevelOneScene.h</p>
  
  <pre><code>class LevelOneScene : public cocos2d::Layer
  {
  public:
      // there's no 'id' in cpp, so we recommend returning the class instance pointer
      static cocos2d::Scene* createScene();
  
      // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
      virtual bool init();
      void update(float dt);
      // a selector callback
      //void menuCloseCallback(cocos2d::Ref* pSender);
      void changeScene(cocos2d::Ref* pSender);
  
      //Screen Data
      Point origin;
      Size visibleSize;
  
  
  
      //add Spirtes
      void addShip();
      Ship* ship;
      void addBackground();
      Sprite* background;
      bool onTap(Touch* touch,
                 Event* touchEvent);
      // implement the "static create()" method manually
      CREATE_FUNC(LevelOneScene);
  private:
      virtual void onEnter();
      virtual void onExit();
      void onTouchMoved(Touch* touch,
                        Event* touchEvent);};
  </code></pre>
  
  <p>LevelOneScene.cpp</p>
  
  <pre><code>bool LevelOneScene::onTap(Touch* touch,
                            Event* touchEvent)
  {
  
      CCLOG("Screen was Tapped");
      return 0;
  
  }
  void LevelOneScene::onTouchMoved(Touch* touch,
                    Event* touchEvent)
  {
      CCLOG("Touch Moved\n");
      ship-&gt;stopAllActions();
      auto moveLeft = cocos2d::MoveTo::create(.5, cocos2d::Point(touch-&gt;getLocation().x,ship-&gt;getPositionY()));
      ship-&gt;runAction(moveLeft);
  
  }
  void LevelOneScene::update(float dt)
  {
  
  }
  void LevelOneScene::onExit()
  {
      Layer::onExit();
  }
  void LevelOneScene::onEnter()
  {
      Layer::onEnter();
      auto touchListener = EventListenerTouchOneByOne::create();
      touchListener-&gt;setSwallowTouches(true);
      touchListener-&gt;onTouchBegan = CC_CALLBACK_2(LevelOneScene::onTap, this);
  
      touchListener-&gt;onTouchMoved = CC_CALLBACK_2(LevelOneScene::onTouchMoved, this);
  
      _eventDispatcher-&gt;addEventListenerWithFixedPriority(touchListener, -1);
  }
  </code></pre>