//
// MenuLayer::keyDown from 0x6eca70 to 0x6ecad4 (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MenuLayer::keyDown @ 0x6ecad8
// > ??> @ 0xd2c58
// > ??> @ 0x1426fc8
//
// This function is hookable on this platform (idp: arm, 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 12:51:46 +0000
//
VideoOptionsLayer *__fastcall MenuLayer::keyDown(MenuLayer *this, int a2)
{
if ( a2 == 1005 )
return MenuLayer::onCreator(this, nullptr);
if ( a2 <= 1005 )
{
if ( a2 != 13 && a2 != 32 )
return (VideoOptionsLayer *)cocos2d::CCLayer::keyDown(this);
return MenuLayer::onPlay(this, nullptr);
}
if ( a2 == 1009 )
return MenuLayer::onPlay(this, nullptr);
if ( a2 == 1023 )
return MenuLayer::onOptions(this, nullptr);
if ( a2 != 1007 )
return (VideoOptionsLayer *)cocos2d::CCLayer::keyDown(this);
return MenuLayer::onGarage(this, nullptr);
}