//
// MenuLayer::keyDown from 0x140336360 to 0x1403363cd (109 bytes)
//
// 1 xrefs:
// > ??> @ 0x1405ab240
//
// 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 MenuLayer::keyDown(MenuLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
if ( a2 <= CONTROLLER_X )
{
if ( a2 == CONTROLLER_X )
{
MenuLayer::onGarage((MenuLayer *)((char *)a1 - 344), nullptr);
return;
}
if ( a2 != KEY_Enter && a2 != KEY_Space )
{
if ( a2 == CONTROLLER_Y )
{
MenuLayer::onCreator((MenuLayer *)((char *)a1 - 344), nullptr);
return;
}
goto LABEL_10;
}
goto LABEL_12;
}
if ( a2 == CONTROLLER_Start )
{
LABEL_12:
MenuLayer::onPlay((MenuLayer *)((char *)a1 - 344), nullptr);
return;
}
if ( a2 != CONTROLLER_Down )
{
LABEL_10:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
MenuLayer::openOptions((MenuLayer *)((char *)a1 - 344), 0);
}