[−][src]Function sdl2_sys::SDL_FlushEvent
pub unsafe extern "C" fn SDL_FlushEvent(type_: Uint32)
This function clears events 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.