// // cocos2d::CCLayer::setKeypadEnabled from 0x180052a90 to 0x180052b32 (162 bytes) // // 11 xrefs: // > @ 0x1800f3420 // > @ 0x1800f3900 // > @ 0x1800f3e58 // > @ 0x1800f43e0 // > @ 0x1800f49d8 // > @ 0x1800fd510 // > @ 0x180141274 // > @ 0x180141288 // > @ 0x180141298 // > @ 0x18014cf68 // > @ 0x1801bc34c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:46 +0000 // void __fastcall cocos2d::CCLayer::setKeypadEnabled(cocos2d::CCLayer *this, char a2) { bool v4; // zf struct cocos2d::CCDirector *v5; // rax struct cocos2d::CCKeypadDelegate *v6; // rsi __int64 v7; // rdx cocos2d::CCKeypadDispatcher *v8; // rax cocos2d::CCMouseDispatcher *v9; // rax (*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)this + 1008LL))(this); if ( a2 != *((_BYTE *)this + 362) ) { v4 = *((_BYTE *)this + 272) == 0; *((_BYTE *)this + 362) = a2; if ( !v4 ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = (cocos2d::CCLayer *)((char *)this + 336); v7 = *(_QWORD *)v5; if ( a2 ) { if ( !this ) v6 = nullptr; v8 = (cocos2d::CCKeypadDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(v7 + 160))(v5); cocos2d::CCKeypadDispatcher::addDelegate(v8, v6); } else { if ( !this ) v6 = nullptr; v9 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(v7 + 160))(v5); cocos2d::CCMouseDispatcher::removeDelegate(v9, v6); } } } }