// // cocos2d::CCLayer::setMouseEnabled from 0x180050d20 to 0x180050db7 (151 bytes) // // 11 xrefs: // > @ 0x1800ed2e0 // > @ 0x1800ed7a0 // > @ 0x1800edcd8 // > @ 0x1800ee240 // > @ 0x1800ee818 // > @ 0x1800f70e8 // > @ 0x1801380bc // > @ 0x1801380d0 // > @ 0x1801380e0 // > @ 0x1801438a8 // > @ 0x1801b20e8 // // 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 __fastcall cocos2d::CCLayer::setMouseEnabled(cocos2d::CCLayer *this, bool a2) { bool v4; // zf struct cocos2d::CCDirector *v5; // rax struct cocos2d::CCMouseDelegate *v6; // rsi cocos2d::CCDirector_vtbl *v7; // rdx cocos2d::CCMouseDispatcher *v8; // rax cocos2d::CCMouseDispatcher *v9; // rax if ( a2 != this->m_bMouseEnabled ) { v4 = !this->m_bRunning; this->m_bMouseEnabled = a2; if ( !v4 ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = &this->cocos2d::CCMouseDelegate; v7 = v5->cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a2 ) { if ( !this ) v6 = nullptr; v8 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v7->getMouseDispatcher)(v5); cocos2d::CCMouseDispatcher::addDelegate(v8, v6); } else { if ( !this ) v6 = nullptr; v9 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v7->getMouseDispatcher)(v5); cocos2d::CCMouseDispatcher::removeDelegate(v9, (struct cocos2d::CCObject *)v6); } } } }