// // cocos2d::CCLayer::setKeypadEnabled from 0x180050c70 to 0x180050d12 (162 bytes) // // 11 xrefs: // > @ 0x1800ed2c0 // > @ 0x1800ed780 // > @ 0x1800edcb8 // > @ 0x1800ee220 // > @ 0x1800ee7f8 // > @ 0x1800f70c8 // > @ 0x18013804c // > @ 0x180138060 // > @ 0x180138070 // > @ 0x1801438a8 // > @ 0x1801b20b8 // // 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::setKeypadEnabled(cocos2d::CCLayer *this, bool a2) { bool v4; // zf struct cocos2d::CCDirector *v5; // rax struct cocos2d::CCKeypadDelegate *v6; // rsi cocos2d::CCDirector_vtbl *v7; // rdx cocos2d::CCKeypadDispatcher *v8; // rax cocos2d::CCMouseDispatcher *v9; // rax ((void (__fastcall *)(cocos2d::CCLayer *))this->setKeyboardEnabled)(this); if ( a2 != this->m_bKeypadEnabled ) { v4 = !this->m_bRunning; this->m_bKeypadEnabled = a2; if ( !v4 ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = &this->cocos2d::CCKeypadDelegate; v7 = v5->cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a2 ) { if ( !this ) v6 = nullptr; v8 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v7->getKeypadDispatcher)(v5); cocos2d::CCKeypadDispatcher::addDelegate(v8, v6); } else { if ( !this ) v6 = nullptr; v9 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v7->getKeypadDispatcher)(v5); cocos2d::CCMouseDispatcher::removeDelegate(v9, (struct cocos2d::CCObject *)v6); } } } }