chickadee » sdl2 » flush-events!

flush-event! typeprocedure
flush-events! #!optional min-type max-typeprocedure

Remove all events on the event queue that match the given type or range of types. See SDL_FlushEvent and SDL_FlushEvents.

For flush-event!, type must be an event type symbol or corresponding integer.

For flush-events!, min-type and max-type specify the range of event types to remove. Events with a type outside of this range will not be removed. min-type and max-type must be event type symbols or corresponding integers. min-type defaults to 'first and max-type defaults to 'last, which means all event types match by default.