//
// MenuLayer::keyDown from 0x5c42f0 to 0x5c4354 (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MenuLayer::keyDown @ 0x5c4358
// > ??> @ 0xa02f0
// > ??> @ 0x1147178
//
// 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_Y )
{
MenuLayer::onCreator(a1, nullptr);
return;
}
if ( a2 <= CONTROLLER_Y )
{
if ( a2 != KEY_Enter && a2 != KEY_Space )
goto LABEL_6;
goto LABEL_11;
}
switch ( a2 )
{
case CONTROLLER_Start:
LABEL_11:
MenuLayer::onPlay(a1, nullptr);
return;
case CONTROLLER_Down:
MenuLayer::onOptions(a1, nullptr);
break;
case CONTROLLER_X:
MenuLayer::onGarage(a1, nullptr);
break;
default:
LABEL_6:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
}