//
// LevelBrowserLayer::keyDown from 0x3bde0c to 0x3bde76 (106 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::keyDown @ 0x3bde7a
//
// 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 LevelBrowserLayer::keyDown(LevelBrowserLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
CCMenuItemSpriteExtra *m_leftArrow; // r0
CCMenuItemSpriteExtra *m_rightArrow; // r0
if ( a2 != KEY_Right )
{
if ( a2 <= KEY_Right )
{
if ( a2 != KEY_Left )
{
LABEL_14:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
goto LABEL_8;
}
if ( a2 == CONTROLLER_Left )
{
LABEL_8:
m_leftArrow = a1->m_leftArrow;
if ( m_leftArrow )
{
if ( ((int (__fastcall *)(CCMenuItemSpriteExtra *))m_leftArrow->isVisible)(m_leftArrow) )
LevelBrowserLayer::onPrevPage(a1, nullptr);
}
return;
}
if ( a2 != CONTROLLER_Right )
goto LABEL_14;
}
m_rightArrow = a1->m_rightArrow;
if ( m_rightArrow && ((int (__fastcall *)(CCMenuItemSpriteExtra *))m_rightArrow->isVisible)(m_rightArrow) )
LevelBrowserLayer::onNextPage(a1, nullptr);
}