[][src]Function fermium::events::SDL_FlushEvent

pub unsafe extern "C" fn SDL_FlushEvent(type_: SDL_EventType)

This function clears events of a particular type 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.