//
// GJBaseGameLayer::processQueuedButtons from 0x140231d10 to 0x140231df3 (227 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processCommands @ 0x140239d51
// > ??> @ 0x1406cdef0
//
// 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_val>::pointer i; // r10
for ( i = a1->m_queuedButtons._Mypair._Myval2._Myfirst;
a1->m_queuedButtons._Mypair._Myval2._Mylast - i;
i = a1->m_queuedButtons._Mypair._Myval2._Myfirst )
{
if ( !a3 && a2 + a1->m_timestamp <= i->m_timestamp )
break;
GJBaseGameLayer::handleButton(a1, i->m_isPush, i->m_button, !i->m_isPlayer2);
memmove(
a1->m_queuedButtons._Mypair._Myval2._Myfirst,
&a1->m_queuedButtons._Mypair._Myval2._Myfirst[1],
(char *)a1->m_queuedButtons._Mypair._Myval2._Mylast - (char *)&a1->m_queuedButtons._Mypair._Myval2._Myfirst[1]);
--a1->m_queuedButtons._Mypair._Myval2._Mylast;
}
}