Function SDL_HasEvents
pub unsafe extern "C" fn SDL_HasEvents(
minType: u32,
maxType: u32,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Check for the existence of certain event types in the event queue.
If you need to check for a single event type, use SDL_HasEvent()
instead.
§Parameters
minType
: the low end of event type to be queried, inclusive; seeSDL_EventType
for details.maxType
: the high end of event type to be queried, inclusive; seeSDL_EventType
for details.
§Return value
Returns true if events with type >= minType
and <= maxType
are
present, or false if not.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.