Window.pollEvent

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.

class Window
bool
pollEvent
()

Return Value

Type: bool

true if an event was returned, or false if the event queue was empty.

Meta