Function fermium::events::SDL_FlushEvent
source · pub unsafe extern "C" fn SDL_FlushEvent(type_: SDL_EventType)
Expand description
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.