SDL_HasEvents - Man Page
Check for the existence of certain event types in the event queue.
Header File
Defined in SDL3/SDL_events.h
Synopsis
#include "SDL3/SDL.h" bool SDL_HasEvents(Uint32 minType, Uint32 maxType);
Description
If you need to check for a single event type, use
SDL_HasEvent () instead.
Function Parameters
- minType
the low end of event type to be queried, inclusive; see SDL_EventType
for details.- maxType
the high end of event type to be queried, inclusive; see SDL_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.
See Also
·(3), SDL_HasEvents(3)
Referenced By
SDL_HasEvent(3), SDL_HasEvents(3).
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS