title: How to add touch event listener in Cocos2dx 3.1?
body: <p>I used following code to add listener method to a Button in cocos2dx:</p>
  
  <pre><code>button-&gt;addTouchEventListener(this, toucheventselector(HomeScene::doSomething));
  </code></pre>
  
  <p>But since Cocos2dx 3.1 both toucheventselector and addTouchEventListener is depreciated. There is :</p>
  
  <pre><code>void addTouchEventListener(ccWidgetTouchCallback callback);
  </code></pre>
  
  <p>I can't make it work - I tried every macro I could find - callfuncO_selector, CC_CALLBACK etc. I just don't know how to point to my method that looks like this:</p>
  
  <pre><code>void HomeScene::doSomething(Ref *pSender, Widget::TouchEventType type);
  </code></pre>
  
  <p>Failed to find any clue from Google, forum, git, change log, tests...</p>