cocos2d-x v3 のシングルタッチイベントリスナーのテンプレーと
// タッチイベントリスナー auto touchListener = EventListenerTouchOneByOne::create(); touchListener->onTouchBegan = [this](Touch* touch, Event *){ return true; }; touchListener->onTouchMoved = [this](Touch* touch, Event *){ }; touchListener->onTouchEnded = [this](Touch* touch, Event *){ }; this->getEventDispatcher()->addEventListenerWithSceneGraphPriority(touchListener, this);