//
// MenuLayer::keyDown from 0x3faeec to 0x3faf50 (100 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MenuLayer::keyDown @ 0x3faf54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:20 +0000
//
VideoOptionsLayer *__fastcall MenuLayer::keyDown(MenuLayer *this, int a2)
{
if ( a2 == 1005 )
return MenuLayer::onCreator(this, nullptr);
if ( a2 > 1005 )
{
switch ( a2 )
{
case 1009:
return (VideoOptionsLayer *)MenuLayer::onPlay((unsigned __int8 *)this, nullptr);
case 1023:
return MenuLayer::onOptions(this, nullptr);
case 1007:
return MenuLayer::onGarage(this, nullptr);
}
}
else if ( a2 == 13 || a2 == 32 )
{
return (VideoOptionsLayer *)MenuLayer::onPlay((unsigned __int8 *)this, nullptr);
}
return (VideoOptionsLayer *)cocos2d::CCLayer::keyDown(this);
}