UIButton* button = UIButton::create();
button->addTouchEventListener(this, toucheventselector(HelloWorld::touchEvent));
void HelloWorld::touchEvent(CCObject *pSender, TouchEventType type) {}
函数touchEvent内如何能获取到触摸点x, y?
UIButton* button = UIButton::create();
button->addTouchEventListener(this, toucheventselector(HelloWorld::touchEvent));
void HelloWorld::touchEvent(CCObject *pSender, TouchEventType type) {}
函数touchEvent内如何能获取到触摸点x, y?
竟然让我找到了Widget上的getTouchStartPos