//
// AchievementsLayer::keyDown from 0x32d998 to 0x32d9fa (98 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x32d9fe
//
// 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 AchievementsLayer::keyDown(AchievementsLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
if ( a2 != KEY_Right )
{
if ( a2 <= KEY_Right )
{
if ( a2 != KEY_Left )
{
LABEL_12:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
goto LABEL_8;
}
if ( a2 == CONTROLLER_Left )
{
LABEL_8:
if ( ((int (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_prevPageButton->isVisible)(a1->m_prevPageButton) )
AchievementsLayer::onPrevPage(a1, nullptr);
return;
}
if ( a2 != CONTROLLER_Right )
goto LABEL_12;
}
if ( ((int (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_nextPageButton->isVisible)(a1->m_nextPageButton) )
AchievementsLayer::onNextPage(a1, nullptr);
}