//
// GJBaseGameLayer::processQueuedButtons from 0x492eb0 to 0x492f10 (96 bytes)
//
// 2 xrefs:
// > PlayLayer::pauseGame @ 0x314500
// > GJBaseGameLayer::processCommands @ 0x492fc8
//
// 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 GJBaseGameLayer::processQueuedButtons(GJBaseGameLayer *a1, float a2, bool a3)
{
std::vector
*p_m_queuedButtons; // r4
_BOOL4 v5; // r6
char *m_start; // r2
p_m_queuedButtons = &a1->m_queuedButtons;
v5 = a3;
while ( 1 )
{
m_start = (char *)p_m_queuedButtons->m_start;
if ( !(-1431655765 * (((char *)p_m_queuedButtons->m_finish - (char *)p_m_queuedButtons->m_start) >> 3))
|| !v5 && *((double *)m_start + 2) >= a2 + a1->m_timestamp )
{
break;
}
GJBaseGameLayer::handleButton(a1, m_start[4], *(_DWORD *)m_start, m_start[5] != 1);
std::vector::erase((int)p_m_queuedButtons, (char *)p_m_queuedButtons->m_start);
}
}