//
// AchievementsLayer::keyDown from 0x6087dc to 0x60888c (176 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x608890
// > ??> @ 0x7bf00
// > ??> @ 0x114a8d8
//
// 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 AchievementsLayer::keyDown(AchievementsLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
if ( a2 == KEY_Right )
goto LABEL_5;
if ( a2 <= KEY_Right )
{
if ( a2 != KEY_Left )
goto LABEL_8;
}
else if ( a2 != CONTROLLER_Left )
{
if ( a2 == CONTROLLER_Right )
{
LABEL_5:
if ( ((unsigned __int8 (__fastcall *)(CCMenuItemSpriteExtra *, long double))a1->m_nextPageButton->isVisible)(
a1->m_nextPageButton,
*(long double *)&a3) )
{
AchievementsLayer::onNextPage(a1, nullptr);
}
return;
}
LABEL_8:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
if ( ((unsigned __int8 (__fastcall *)(CCMenuItemSpriteExtra *, long double))a1->m_prevPageButton->isVisible)(
a1->m_prevPageButton,
*(long double *)&a3) )
{
AchievementsLayer::onPrevPage(a1, nullptr);
}
}