//
// PlatformerControlsPopup::onKeyboard from 0x140451810 to 0x140451863 (83 bytes)
//
// 2 xrefs:
// > PlatformerControlsPopup::init @ 0x14044f5ce
// > ??> @ 0x1409277e8
//
// 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 11:32:27 +0000
//
__int64 __fastcall PlatformerControlsPopup::onKeyboard(__int64 a1)
{
__int64 v1; // rax
void *v3; // rax
v1 = *(_QWORD *)(a1 + 1032);
if ( v1 && *(_DWORD *)(v1 + 2096) == 1 )
{
PlatformerControlsPopup::ensureCustomDraft(a1);
v3 = LevelBindingsLayer::create(*(_QWORD *)(a1 + 1048) + 72LL, 0);
}
else
{
v3 = KeybindingsLayer::create(0);
}
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v3 + 1064LL))(v3);
}