chickadee » sdl2 » has-events?

has-event? typeprocedure
has-events? #!optional min-type max-typeprocedure

Returns #t if the event queue currently has at least one event matching the given type or range of types. See SDL_HasEvent and SDL_HasEvents.

For has-event?, type must be an event type symbol or corresponding integer.

For has-events?, min-type and max-type specify the range of event types to consider. Events with a type outside of this range will not be considered. 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.