//
// cocos2d::CCLayer::keyDown from 0x180052310 to 0x18005234b (59 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800f34d8
// > ??> @ 0x1800f39b8
// > ??> @ 0x1800f3f28
// > ??> @ 0x1800f4520
// > ??> @ 0x1800f4a90
// > ??> @ 0x1800fd5d8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc250
//
// 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:45 +0000
//
void __fastcall cocos2d::CCLayer::keyDown(__int64 a1, int a2)
{
struct cocos2d::CCDirector *v2; // rax
__int64 v3; // rax
if ( a2 == 27 || a2 == 1003 )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 160LL))(v2);
cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v3, 1);
}
}