//
// MenuLayer::keyDown from 0x30b578 to 0x30b5dc (100 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MenuLayer::keyDown @ 0x30b5e0
//
// 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 )
{
switch ( a2 )
{
case CONTROLLER_Start:
LABEL_10:
MenuLayer::onPlay(a1, nullptr);
return;
case CONTROLLER_Down:
MenuLayer::onOptions(a1, nullptr);
return;
case CONTROLLER_X:
MenuLayer::onGarage(a1, nullptr);
return;
}
}
else if ( a2 == KEY_Enter || a2 == KEY_Space )
{
goto LABEL_10;
}
cocos2d::CCLayer::keyDown(a1, a2, a3);
}