//
// LevelSelectLayer::keyDown from 0x100422190 to 0x100422260 (208 bytes)
//
// 2 xrefs:
// > sub_100422370 @ 0x10042237c
// > ??> @ 0x100b414a0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:16 +0000
//
void __fastcall LevelSelectLayer::keyDown(__int64 a1, int a2)
{
__int64 Page; // rax
switch ( a2 )
{
case 13:
case 32:
LABEL_4:
if ( !byte_100BE8B9C )
{
Page = BoomScrollLayer::getPage(*(_QWORD *)(a1 + 448), *(_DWORD *)(*(_QWORD *)(a1 + 448) + 588LL));
LevelPage::onPlay(Page);
}
break;
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 33:
case 34:
case 35:
case 36:
case 38:
LABEL_9:
cocos2d::CCLayer::keyDown(a1);
break;
case 37:
LABEL_6:
BoomScrollLayer::quickUpdate(*(_QWORD *)(a1 + 448));
BoomScrollLayer::moveToPage(*(_QWORD *)(a1 + 448), *(_DWORD *)(*(_QWORD *)(a1 + 448) + 588LL) - 1);
break;
case 39:
LABEL_7:
BoomScrollLayer::quickUpdate(*(_QWORD *)(a1 + 448));
BoomScrollLayer::moveToPage(*(_QWORD *)(a1 + 448), *(_DWORD *)(*(_QWORD *)(a1 + 448) + 588LL) + 1);
break;
default:
switch ( a2 )
{
case 1001:
case 1009:
goto LABEL_4;
case 1025:
goto LABEL_6;
case 1027:
goto LABEL_7;
default:
goto LABEL_9;
}
}
}