//
// PauseLayer::keyDown from 0x1001437f8 to 0x10014389c (164 bytes)
//
// 2 xrefs:
// > sub_10014389C @ 0x1001438a0
// > ??> @ 0x1007941f0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall PauseLayer::keyDown(PauseLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
cocos2d::CCObject *v4; // x1
if ( a2 <= (KEY_OEM102|KEY_Backspace|0x300) )
{
if ( a2 != KEY_Escape )
{
if ( a2 == KEY_Space )
goto LABEL_5;
return;
}
LABEL_9:
PauseLayer::tryQuit(a1, nullptr);
return;
}
switch ( a2 )
{
case CONTROLLER_B:
goto LABEL_9;
case CONTROLLER_X:
if ( GameManager::sharedState()->m_playLayer->m_isPracticeMode )
PauseLayer::onNormalMode(a1, v4);
else
PauseLayer::onPracticeMode(a1, v4);
break;
case CONTROLLER_Start:
LABEL_5:
PauseLayer::onResume(a1, *(cocos2d::CCObject **)&a2);
break;
}
}