//
// MenuLayer::keyDown from 0x140475550 to 0x1404755bd (109 bytes)
//
// 1 xrefs:
// > ??> @ 0x1407b47f8
//
// 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:32:40 +0000
//
void __fastcall MenuLayer::keyDown(__int64 a1, int a2)
{
if ( a2 <= 1007 )
{
if ( a2 == 1007 )
{
MenuLayer::onGarage(a1 - 344);
return;
}
if ( a2 != 13 && a2 != 32 )
{
if ( a2 == 1005 )
{
MenuLayer::onCreator(a1 - 344);
return;
}
goto LABEL_10;
}
goto LABEL_12;
}
if ( a2 == 1009 )
{
LABEL_12:
MenuLayer::onPlay(a1 - 344);
return;
}
if ( a2 != 1023 )
{
LABEL_10:
cocos2d::CCLayer::keyDown(a1);
return;
}
MenuLayer::openOptions(a1 - 344, 0);
}