1
Window / does window.pollEvent() remove the first item or remove the last item?
« on: January 20, 2024, 08:10:19 am »
is window.pollEvent() method follow the stack or queue when polling events? I read the sfml repositry and I could find this,
but I still cannot figure out that removal process of the pollEvent is happenning at the begining or the ending.
I looking for a quick answer since I have a another question depending on your answer!
bool WindowBase::pollEvent(Event& event)
{
if (m_impl && m_impl->popEvent(event, false))
{
filterEvent(event);
return true;
}
else
{
return false;
}
}
{
if (m_impl && m_impl->popEvent(event, false))
{
filterEvent(event);
return true;
}
else
{
return false;
}
}
but I still cannot figure out that removal process of the pollEvent is happenning at the begining or the ending.
I looking for a quick answer since I have a another question depending on your answer!