Pop the event on top of the event queue, if any, and return it.
This function is not blocking: if there's no pending event then it will
return false and leave event unmodified. Note that more than one event
may be present in the event queue, thus you should always call this
function in a loop to make sure that you process every pending event.
Pop the event on top of the event queue, if any, and return it.
This function is not blocking: if there's no pending event then it will return false and leave event unmodified. Note that more than one event may be present in the event queue, thus you should always call this function in a loop to make sure that you process every pending event.