//
// cocos2d::CCLayer::keyDown from 0x7d75ca to 0x7d75ee (36 bytes)
//
// 13 xrefs:
// > FLAlertLayer::keyDown @ 0x3cc3f0
// > MenuLayer::keyDown @ 0x3faf4c
// > AchievementsLayer::keyDown @ 0x422728
// > LevelSearchLayer::keyDown @ 0x4998ea
// > LevelInfoLayer::keyDown @ 0x49f302
// > EditLevelLayer::keyDown @ 0x4a2310
// > LevelBrowserLayer::keyDown @ 0x4a93e0
// > LevelSelectLayer::keyDown @ 0x5140fc
// > EndLevelLayer::keyDown @ 0x5353f6
// > RetryLevelLayer::keyDown @ 0x547648
// > SetupObjectOptionsPopup::keyDown @ 0x63e8a0
// > SetupTriggerPopup::keyDown @ 0x67ea80
// > `non-virtual thunk to'cocos2d::CCLayer::keyDown @ 0x7d75f2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:40 +0000
//
cocos2d::CCDirector *__fastcall cocos2d::CCLayer::keyDown(cocos2d::CCDirector *result, int a2)
{
int v2; // r0
int v3; // r0
if ( a2 == 27 || a2 == 1003 )
{
v2 = cocos2d::CCDirector::sharedDirector(result);
v3 = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 88))(v2);
return (cocos2d::CCDirector *)cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v3, 1);
}
return result;
}