// // cocos2d::CCTouchDispatcher::addTargetedDelegate from 0x5fa7b8 to 0x5fa842 (138 bytes) // // 47 xrefs: // > CCBlockLayer::registerWithTouchDispatcher @ 0x2e5c46 // > cocos2d::CCScrollLayer::initWithLayers @ 0x2e7d40 // > CCScrollLayerExt::registerWithTouchDispatcher @ 0x2e818c // > LoadingCircle::registerWithTouchDispatcher @ 0x2f05d6 // > SlideInLayer::registerWithTouchDispatcher @ 0x2f4f1a // > CreateGuidelinesLayer::registerWithTouchDispatcher @ 0x3086c6 // > UILayer::registerWithTouchDispatcher @ 0x30c7e6 // > EditorUI::registerWithTouchDispatcher @ 0x37bb92 // > MenuGameLayer::registerWithTouchDispatcher @ 0x3a9376 // > LevelBrowserLayer::registerWithTouchDispatcher @ 0x3bdef8 // > LevelPage::registerWithTouchDispatcher @ 0x40908e // > GJDropDownLayer::registerWithTouchDispatcher @ 0x420a12 // > InfoLayer::registerWithTouchDispatcher @ 0x42ef9e // > ShareCommentLayer::registerWithTouchDispatcher @ 0x431896 // > AccountRegisterLayer::registerWithTouchDispatcher @ 0x467f0a // > AccountLoginLayer::registerWithTouchDispatcher @ 0x467f2e // > GJWriteMessagePopup::registerWithTouchDispatcher @ 0x4a885a // > UIOptionsLayer::registerWithTouchDispatcher @ 0x4a887e // > GJPromoPopup::registerWithTouchDispatcher @ 0x4a889e // > UIPOptionsLayer::registerWithTouchDispatcher @ 0x4a88c2 // > MessagesProfilePage::registerWithTouchDispatcher @ 0x4c0cca // > FRequestProfilePage::registerWithTouchDispatcher @ 0x4c20c2 // > FriendsProfilePage::registerWithTouchDispatcher @ 0x4c346e // > ProfilePage::registerWithTouchDispatcher @ 0x4c4f66 // > ChallengesPage::registerWithTouchDispatcher @ 0x4cbad2 // > DailyLevelPage::registerWithTouchDispatcher @ 0x4d3ace // > GJShopLayer::registerWithTouchDispatcher @ 0x4e1e82 // > LevelLeaderboard::registerWithTouchDispatcher @ 0x4e4aa6 // > RewardsPage::registerWithTouchDispatcher @ 0x4e687a // > ShardsPage::registerWithTouchDispatcher @ 0x4fb0d2 // > FollowRewardPage::registerWithTouchDispatcher @ 0x4ff79a // > TopArtistsLayer::registerWithTouchDispatcher @ 0x5009ea // > CommunityCreditsPage::registerWithTouchDispatcher @ 0x506a06 // > MapSelectLayer::registerWithTouchDispatcher @ 0x50dcae // > CharacterColorPage::registerWithTouchDispatcher @ 0x564ae2 // > LevelSettingsLayer::registerWithTouchDispatcher @ 0x56f748 // > MusicBrowser::registerWithTouchDispatcher @ 0x5813a2 // > OptionsScrollLayer::registerWithTouchDispatcher @ 0x5813c6 // > SFXBrowser::registerWithTouchDispatcher @ 0x582f56 // > GJPathsLayer::registerWithTouchDispatcher @ 0x58ba36 // > GJPathPage::registerWithTouchDispatcher @ 0x58ba5a // > AudioAssetsBrowser::registerWithTouchDispatcher @ 0x59b57e // > cocos2d::extension::CCControl::registerWithTouchDispatcher @ 0x5a092e // > cocos2d::extension::CCScrollView::registerWithTouchDispatcher @ 0x5a7f56 // > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x5cedae // > cocos2d::CCMenu::registerWithTouchDispatcher @ 0x5d3bec // > cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x5fa864 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCTouchDispatcher::addTargetedDelegate( cocos2d::CCTouchDispatcher *a1, cocos2d::CCTouchDelegate *a2, int m_targetPrio, bool a4) { cocos2d::CCTargetedTouchHandler *v8; // r6 cocos2d::CCObject *v9; // r2 if ( !cocos2d::CCTouchDispatcher::isUsingForcePrio(a1) || m_targetPrio <= a1->m_targetPrio || a2->getPreviousPriority(a2) ) { if ( a2->getPreviousPriority(a2) ) m_targetPrio = a2->getPreviousPriority(a2); } else { m_targetPrio = a1->m_targetPrio; } a2->setPreviousPriority(a2, m_targetPrio); v8 = cocos2d::CCTargetedTouchHandler::handlerWithDelegate(a2, m_targetPrio, a4); if ( a1->m_bLocked ) { if ( cocos2d::ccCArrayContainsValue(&a1->m_pHandlersToRemove->num, (int)a2) ) { cocos2d::ccCArrayRemoveValue(&a1->m_pHandlersToRemove->num, (int)a2); } else { cocos2d::CCArray::addObject(a1->m_pHandlersToAdd, (cocos2d::_ccArray *)v8, v9); a1->m_bToAdd = 1; } } else { cocos2d::CCTouchDispatcher::forceAddHandler(a1, v8, a1->m_pTargetedHandlers); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source