Function SDL_HasEvent
pub unsafe extern "C" fn SDL_HasEvent(type_: u32) -> SDL_bool
Available on crate feature
dep_sdl2
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.
\param type the type of event to be queried; see SDL_EventType for details
\returns SDL_TRUE if events matching type
are present, or SDL_FALSE if
events matching type
are not present.
\since This function is available since SDL 2.0.0.
\sa SDL_HasEvents