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