cocos2d-x3.2觸屏問題,不會調用onTouchBegan

3.2版本改了觸摸機制,加以下代碼便可this auto listener = EventListenerTouchOneByOne::create(); listener->setSwallowTouches(true); listener->onTouchBegan = CC_CALLBACK_2(PlayGameLayer::onTouchBegan, this); listener->on
相關文章
相關標籤/搜索