//
// cocos2d::CCLayer::onEnter from 0x100148ce8 to 0x100148dc8 (224 bytes)
//
// 105 xrefs:
// > DialogLayer::onEnter @ 0x1000874a4
// > cocos2d::extension::CCControl::onEnter @ 0x1001a5a34
// > GJGameLoadingLayer::onEnter @ 0x100209508
// > LevelListLayer::onEnter @ 0x10024604c
// > FLAlertLayer::onEnter @ 0x1002acf74
// > TableView::onEnter @ 0x1002ff414
// > LevelBrowserLayer::onEnter @ 0x1004198b4
// > ??> @ 0x100764820
// > ??> @ 0x1007650d0
// > ??> @ 0x100765670
// > ??> @ 0x100768e40
// > ??> @ 0x10076f9d8
// > ??> @ 0x100772220
// > ??> @ 0x1007775e0
// > ??> @ 0x100779f68
// > ??> @ 0x10077bfe0
// > ??> @ 0x10077e618
// > ??> @ 0x1007818d0
// > ??> @ 0x1007822c8
// > ??> @ 0x100784540
// > ??> @ 0x1007880e0
// > ??> @ 0x100788650
// > ??> @ 0x100788bc0
// > ??> @ 0x100789130
// > ??> @ 0x1007896a0
// > ??> @ 0x100789c10
// > ??> @ 0x10078a1d0
// > ??> @ 0x10078a778
// > ??> @ 0x10078ad38
// > ??> @ 0x10078b2a8
// > ??> @ 0x10078b818
// > ??> @ 0x10078bdc8
// > ??> @ 0x10078c358
// > ??> @ 0x10078c8c8
// > ??> @ 0x10078ce38
// > ??> @ 0x10078d418
// > ??> @ 0x10078d9f8
// > ??> @ 0x10078dfd8
// > ??> @ 0x10078e548
// > ??> @ 0x10078eab8
// > ??> @ 0x10078f028
// > ??> @ 0x10078fb38
// > ??> @ 0x100791bc8
// > ??> @ 0x100792150
// > ??> @ 0x100794048
// > ??> @ 0x1007970a8
// > ??> @ 0x100797618
// > ??> @ 0x100797c78
// > ??> @ 0x100798428
// > ??> @ 0x100798b58
// > ??> @ 0x10079c080
// > ??> @ 0x10079c818
// > ??> @ 0x10079d3c8
// > ??> @ 0x10079f8a0
// > ??> @ 0x1007a69a0
// > ??> @ 0x1007a7d20
// > ??> @ 0x1007b12e0
// > ??> @ 0x1007b3ff8
// > ??> @ 0x1007b6808
// > ??> @ 0x1007bbc30
// > ??> @ 0x1007bc270
// > ??> @ 0x1007bc7e0
// > ??> @ 0x1007bee58
// > ??> @ 0x1007bfb00
// > ??> @ 0x1007c0950
// > ??> @ 0x1007c1670
// > ??> @ 0x1007c6c20
// > ??> @ 0x1007ca970
// > ??> @ 0x1007d13e8
// > ??> @ 0x1007d1b88
// > ??> @ 0x1007d3830
// > ??> @ 0x1007d7e10
// > ??> @ 0x1007d95d8
// > ??> @ 0x1007dd7b8
// > ??> @ 0x1007e6200
// > ??> @ 0x1007e6810
// > ??> @ 0x1007e6d98
// > ??> @ 0x1007e9288
// > ??> @ 0x1007eb8c8
// > ??> @ 0x1007ebe60
// > ??> @ 0x1007ed928
// > ??> @ 0x1007edf38
// > ??> @ 0x1007ee520
// > ??> @ 0x1007ef348
// > ??> @ 0x1007f1580
// > ??> @ 0x1007f1b48
// > ??> @ 0x1007f2110
// > ??> @ 0x1007f39a0
// > ??> @ 0x1007f40b0
// > ??> @ 0x1007f48e0
// > ??> @ 0x10080a780
// > ??> @ 0x10080b3e0
// > ??> @ 0x10080b968
// > ??> @ 0x10080e380
// > ??> @ 0x10080e9c8
// > ??> @ 0x100811508
// > ??> @ 0x100813738
// > ??> @ 0x100813df8
// > ??> @ 0x100814608
// > ??> @ 0x100814c40
// > ??> @ 0x1008151c8
// > ??> @ 0x100817200
// > ??> @ 0x100817790
// > ??> @ 0x100824b60
// > ??> @ 0x1008258e0
//
// 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::onEnter(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v2; // x20
__int64 v3; // x0
cocos2d::CCKeypadDispatcher *v4; // x0
__int64 v5; // x0
cocos2d::CCMouseDispatcher *v6; // x0
v2 = cocos2d::CCDirector::sharedDirector();
if ( a1->m_bTouchEnabled )
((void (__fastcall *)(cocos2d::CCLayer *))a1->registerWithTouchDispatcher)(a1);
cocos2d::CCNode::onEnter(a1);
if ( a1->m_bAccelerometerEnabled )
{
v3 = ((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getAccelerometer)(v2);
sub_100031988(v3, (__int64)&a1->cocos2d::CCAccelerometerDelegate);
}
if ( a1->m_bKeypadEnabled )
{
v4 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getKeypadDispatcher)(v2);
cocos2d::CCKeypadDispatcher::addDelegate(v4, &a1->cocos2d::CCKeypadDelegate);
}
if ( a1->m_bKeyboardEnabled )
{
v5 = ((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getKeyboardDispatcher)(v2);
sub_100239BB8(v5, &a1->cocos2d::CCKeyboardDelegate);
}
if ( a1->m_bMouseEnabled )
{
v6 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getMouseDispatcher)(v2);
cocos2d::CCMouseDispatcher::addDelegate(v6, &a1->cocos2d::CCMouseDelegate);
}
}