//
// cocos2d::CCLayer::setKeyboardEnabled from 0xaea9fc to 0xaeaa6c (112 bytes)
//
// 329 xrefs:
// > ??> @ 0x6dde8
// > ??> @ 0x11346d0
// > ??> @ 0x1134d10
// > ??> @ 0x1135280
// > ??> @ 0x1135820
// > ??> @ 0x1135d90
// > ??> @ 0x1136f80
// > ??> @ 0x1138150
// > ??> @ 0x113a2f0
// > ??> @ 0x113a880
// > ??> @ 0x113af00
// > ??> @ 0x113b510
// > ??> @ 0x113be60
// > ??> @ 0x113c900
// > ??> @ 0x113efb0
// > ??> @ 0x113fbf0
// > ??> @ 0x1140260
// > ??> @ 0x11407f0
// > ??> @ 0x11412e0
// > ??> @ 0x1143a90
// > ??> @ 0x11443a0
// > ??> @ 0x1145b00
// > ??> @ 0x11462b0
// > ??> @ 0x11469c0
// > ??> @ 0x1147150
// > ??> @ 0x1147720
// > ??> @ 0x1147d10
// > ??> @ 0x1148950
// > ??> @ 0x114a1e0
// > ??> @ 0x114a8b0
// > ??> @ 0x114b500
// > ??> @ 0x114bb40
// > ??> @ 0x114c0b0
// > ??> @ 0x114c620
// > ??> @ 0x114cb90
// > ??> @ 0x114d100
// > ??> @ 0x114d670
// > ??> @ 0x114dc30
// > ??> @ 0x114e1e0
// > ??> @ 0x114e7a0
// > ??> @ 0x114ed10
// > ??> @ 0x114f280
// > ??> @ 0x114f830
// > ??> @ 0x114fdc0
// > ??> @ 0x1150330
// > ??> @ 0x11508a0
// > ??> @ 0x1150e80
// > ??> @ 0x1151460
// > ??> @ 0x1151a40
// > ??> @ 0x1151fb0
// > ??> @ 0x1152520
// > ??> @ 0x11551c0
// > ??> @ 0x11559f0
// > ??> @ 0x1156ae0
// > ??> @ 0x11572f0
// > ??> @ 0x1157860
// > ??> @ 0x1157dd0
// > ??> @ 0x1158720
// > ??> @ 0x1158e60
// > ??> @ 0x1159450
// > ??> @ 0x115a0e0
// > ??> @ 0x115a6f0
// > ??> @ 0x115ae00
// > ??> @ 0x115b660
// > ??> @ 0x115bdc0
// > ??> @ 0x115c4e0
// > ??> @ 0x115cb90
// > ??> @ 0x115d270
// > ??> @ 0x115da80
// > ??> @ 0x1160750
// > ??> @ 0x1161150
// > ??> @ 0x1177ab0
// > ??> @ 0x11781f0
// > ??> @ 0x1178a40
// > ??> @ 0x1179c10
// > ??> @ 0x117a2e0
// > ??> @ 0x117aa80
// > ??> @ 0x117b050
// > ??> @ 0x117b600
// > ??> @ 0x117c5e0
// > ??> @ 0x117ce20
// > ??> @ 0x117d390
// > ??> @ 0x117dab0
// > ??> @ 0x117e200
// > ??> @ 0x117e8b0
// > ??> @ 0x117efb0
// > ??> @ 0x117f680
// > ??> @ 0x1180230
// > ??> @ 0x1180950
// > ??> @ 0x1181070
// > ??> @ 0x1181780
// > ??> @ 0x1181f10
// > ??> @ 0x11825e0
// > ??> @ 0x1182dc0
// > ??> @ 0x1183580
// > ??> @ 0x11840c0
// > ??> @ 0x1184790
// > ??> @ 0x1184e90
// > ??> @ 0x1185420
// > ??> @ 0x11859b0
// > ??> @ 0x1185f70
// > ??> @ 0x1186ad0
// > ??> @ 0x1187160
// > ??> @ 0x1187810
// > ??> @ 0x11880b0
// > ??> @ 0x11887b0
// > ??> @ 0x118a7a0
// > ??> @ 0x118af00
// > ??> @ 0x118b5b0
// > ??> @ 0x118bc80
// > ??> @ 0x118c840
// > ??> @ 0x118cfc0
// > ??> @ 0x118dc80
// > ??> @ 0x118e420
// > ??> @ 0x118ec70
// > ??> @ 0x118f3f0
// > ??> @ 0x118fb70
// > ??> @ 0x1190640
// > ??> @ 0x1191110
// > ??> @ 0x1191830
// > ??> @ 0x1191df0
// > ??> @ 0x1193c20
// > ??> @ 0x1194990
// > ??> @ 0x1195040
// > ??> @ 0x1195820
// > ??> @ 0x1196000
// > ??> @ 0x1196800
// > ??> @ 0x1197000
// > ??> @ 0x11976b0
// > ??> @ 0x1197dc0
// > ??> @ 0x11984a0
// > ??> @ 0x1198b50
// > ??> @ 0x1199270
// > ??> @ 0x11999c0
// > ??> @ 0x119a150
// > ??> @ 0x119a930
// > ??> @ 0x119b040
// > ??> @ 0x119b770
// > ??> @ 0x119be80
// > ??> @ 0x119c5b0
// > ??> @ 0x119ccc0
// > ??> @ 0x119d750
// > ??> @ 0x119df50
// > ??> @ 0x119e750
// > ??> @ 0x119ef30
// > ??> @ 0x119f630
// > ??> @ 0x119fce0
// > ??> @ 0x11a0510
// > ??> @ 0x11a1b30
// > ??> @ 0x11a2840
// > ??> @ 0x11a2f10
// > ??> @ 0x11a3710
// > ??> @ 0x11a3f10
// > ??> @ 0x11a4740
// > ??> @ 0x11a5020
// > ??> @ 0x11a5840
// > ??> @ 0x11a6060
// > ??> @ 0x11a68c0
// > ??> @ 0x11a70f0
// > ??> @ 0x11a77a0
// > ??> @ 0x11a7ea0
// > ??> @ 0x11a8530
// > ??> @ 0x11a9010
// > ??> @ 0x11a9750
// > ??> @ 0x11a9e40
// > ??> @ 0x11aa580
// > ??> @ 0x11ab150
// > ??> @ 0x11abd00
// > ??> @ 0x11ac440
// > ??> @ 0x11ad1b0
// > ??> @ 0x11ad790
// > ??> @ 0x11adf90
// > ??> @ 0x11ae7a0
// > ??> @ 0x11aef80
// > ??> @ 0x11af820
// > ??> @ 0x11afe00
// > ??> @ 0x11b0aa0
// > ??> @ 0x11b1210
// > ??> @ 0x11b19e0
// > ??> @ 0x11b20e0
// > ??> @ 0x11b2e00
// > ??> @ 0x11b3410
// > ??> @ 0x11b3980
// > ??> @ 0x11b42f0
// > ??> @ 0x11b4920
// > ??> @ 0x11b5120
// > ??> @ 0x11b5920
// > ??> @ 0x11b6120
// > ??> @ 0x11b6950
// > ??> @ 0x11b7130
// > ??> @ 0x11b7910
// > ??> @ 0x11b8110
// > ??> @ 0x11b8910
// > ??> @ 0x11b9110
// > ??> @ 0x11b9910
// > ??> @ 0x11ba110
// > ??> @ 0x11ba910
// > ??> @ 0x11bb110
// > ??> @ 0x11bb910
// > ??> @ 0x11bc030
// > ??> @ 0x11bc970
// > ??> @ 0x11bd080
// > ??> @ 0x11bd820
// > ??> @ 0x11bdf30
// > ??> @ 0x11be750
// > ??> @ 0x11bee70
// > ??> @ 0x11bf670
// > ??> @ 0x11bfe70
// > ??> @ 0x11c0680
// > ??> @ 0x11c0e60
// > ??> @ 0x11c19f0
// > ??> @ 0x11c2140
// > ??> @ 0x11c2870
// > ??> @ 0x11c2f80
// > ??> @ 0x11c3b40
// > ??> @ 0x11c4b80
// > ??> @ 0x11c53e0
// > ??> @ 0x11c5c60
// > ??> @ 0x11c6470
// > ??> @ 0x11c6c50
// > ??> @ 0x11c7450
// > ??> @ 0x11c7c50
// > ??> @ 0x11c8280
// > ??> @ 0x11c8a00
// > ??> @ 0x11c9170
// > ??> @ 0x11c98e0
// > ??> @ 0x11ca890
// > ??> @ 0x11cafb0
// > ??> @ 0x11cb6e0
// > ??> @ 0x11cbda0
// > ??> @ 0x11cc480
// > ??> @ 0x11cccc0
// > ??> @ 0x11cd4c0
// > ??> @ 0x11cdcd0
// > ??> @ 0x11ce4b0
// > ??> @ 0x11cecb0
// > ??> @ 0x11cf4b0
// > ??> @ 0x11cfa40
// > ??> @ 0x11d0240
// > ??> @ 0x11d0af0
// > ??> @ 0x11d12d0
// > ??> @ 0x11d1ab0
// > ??> @ 0x11d2290
// > ??> @ 0x11d2a70
// > ??> @ 0x11d3280
// > ??> @ 0x11d3a60
// > ??> @ 0x11d42b0
// > ??> @ 0x11d4ae0
// > ??> @ 0x11d5370
// > ??> @ 0x11d5b70
// > ??> @ 0x11d6220
// > ??> @ 0x11d6a00
// > ??> @ 0x11d7210
// > ??> @ 0x11d79f0
// > ??> @ 0x11d81f0
// > ??> @ 0x11d8a10
// > ??> @ 0x11d9110
// > ??> @ 0x11da510
// > ??> @ 0x11daaa0
// > ??> @ 0x11db5c0
// > ??> @ 0x11dbd60
// > ??> @ 0x11dc410
// > ??> @ 0x11dcac0
// > ??> @ 0x11dd2c0
// > ??> @ 0x11ddaf0
// > ??> @ 0x11de2d0
// > ??> @ 0x11deb70
// > ??> @ 0x11df350
// > ??> @ 0x11dfb30
// > ??> @ 0x11e0370
// > ??> @ 0x11e0d60
// > ??> @ 0x11e1540
// > ??> @ 0x11e1d20
// > ??> @ 0x11e2500
// > ??> @ 0x11e2ce0
// > ??> @ 0x11e34c0
// > ??> @ 0x11e3ca0
// > ??> @ 0x11e4480
// > ??> @ 0x11e4c60
// > ??> @ 0x11e5440
// > ??> @ 0x11e5c20
// > ??> @ 0x11e6400
// > ??> @ 0x11e6be0
// > ??> @ 0x11e73c0
// > ??> @ 0x11e7ba0
// > ??> @ 0x11e8380
// > ??> @ 0x11e8b80
// > ??> @ 0x11e9360
// > ??> @ 0x11e9b60
// > ??> @ 0x11ea360
// > ??> @ 0x11eabf0
// > ??> @ 0x11eb3c0
// > ??> @ 0x11ebb80
// > ??> @ 0x11ec290
// > ??> @ 0x11eca40
// > ??> @ 0x11ed140
// > ??> @ 0x11edd50
// > ??> @ 0x11ee420
// > ??> @ 0x11eeb10
// > ??> @ 0x11ef340
// > ??> @ 0x11efa50
// > ??> @ 0x11f02e0
// > ??> @ 0x11f0990
// > ??> @ 0x11f1040
// > ??> @ 0x11f1770
// > ??> @ 0x11f1f50
// > ??> @ 0x11f2730
// > ??> @ 0x11f2f60
// > ??> @ 0x11f37a0
// > ??> @ 0x11f3de0
// > ??> @ 0x11f4350
// > ??> @ 0x11f49a0
// > ??> @ 0x11f5100
// > ??> @ 0x11f58b0
// > ??> @ 0x11f5fa0
// > ??> @ 0x11f66a0
// > ??> @ 0x11f6da0
// > ??> @ 0x11f7ad0
// > ??> @ 0x11f8780
// > ??> @ 0x11f8e60
// > ??> @ 0x11f9580
// > ??> @ 0x11f9bf0
// > ??> @ 0x11fa710
// > ??> @ 0x1203b90
// > ??> @ 0x1204100
// > ??> @ 0x1204760
// > ??> @ 0x1204e10
// > ??> @ 0x1205530
// > ??> @ 0x120e6e0
//
// 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::CCLayer::setKeyboardEnabled(cocos2d::CCLayer *a1, bool a2)
{
_BOOL4 v2; // w20
_BOOL4 m_bRunning; // w1
__int64 (*getKeyboardDispatcher)(void); // x1
cocos2d::CCKeyboardDispatcher *v6; // x0
v2 = a2;
if ( a1->m_bKeyboardEnabled != a2 )
{
m_bRunning = a1->m_bRunning;
a1->m_bKeyboardEnabled = v2;
if ( m_bRunning )
{
getKeyboardDispatcher = (__int64 (*)(void))cocos2d::CCDirector::sharedDirector()->getKeyboardDispatcher;
v6 = (cocos2d::CCKeyboardDispatcher *)getKeyboardDispatcher();
if ( v2 )
cocos2d::CCKeyboardDispatcher::addDelegate(v6, &a1->cocos2d::CCKeyboardDelegate);
else
cocos2d::CCKeyboardDispatcher::removeDelegate(v6, &a1->cocos2d::CCKeyboardDelegate);
}
}
}