// // AchievementsLayer::keyDown from 0x1004223fc to 0x1004224a0 (164 bytes) // // 2 xrefs: // > sub_1004224A0 @ 0x1004224a4 // > @ 0x100825a88 // // 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 AchievementsLayer::keyDown(AchievementsLayer *a1, cocos2d::enumKeyCodes a2, double a3) { int v4; // w1 if ( a2 > 1024 ) { if ( a2 == CONTROLLER_Right ) goto LABEL_9; if ( a2 != CONTROLLER_Left ) { LABEL_13: cocos2d::CCLayer::keyDown(a1, a2, a3); return; } } else if ( a2 != KEY_Left ) { if ( a2 != KEY_Right ) goto LABEL_13; LABEL_9: if ( ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *, __n128))a1->m_nextPageButton->isVisible)( a1->m_nextPageButton, *(__n128 *)&a3) ) { v4 = a1->m_currentPage + 1; goto LABEL_11; } return; } if ( ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *, __n128))a1->m_prevPageButton->isVisible)( a1->m_prevPageButton, *(__n128 *)&a3) ) { v4 = a1->m_currentPage - 1; LABEL_11: AchievementsLayer::loadPage(a1, v4); } }