pub unsafe extern "C" fn SDL_FlushEvents(
    minType: SDL_EventType,
    maxType: SDL_EventType
)
Expand description

This function clears a range of event types from the event queue.

This function only affects currently queued events. If you want to make sure that all pending OS events are flushed, you can call SDL_PumpEvents on the main thread immediately before the flush call.