mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
sure you go girl
This commit is contained in:
parent
0e1b0e4b91
commit
28bd75793e
1 changed files with 3 additions and 0 deletions
|
@ -479,6 +479,9 @@ void geode::cocos::reloadTextures(CreateLayerFunc returnTo) {
|
|||
}
|
||||
|
||||
void GEODE_DLL geode::cocos::handleTouchPriorityWith(cocos2d::CCNode* node, int priority, bool force) {
|
||||
if (node == nullptr) return;
|
||||
if (node->getChildrenCount() == 0) return;
|
||||
|
||||
for (auto child : CCArrayExt<CCNode*>(node->getChildren())) {
|
||||
if (auto delegate = typeinfo_cast<CCTouchDelegate*>(child)) {
|
||||
if (auto handler = CCTouchDispatcher::get()->findHandler(delegate)) {
|
||||
|
|
Loading…
Reference in a new issue