SDL_HasEvents3
Check for the existence of certain event types in the event queue.
Usage
#include "SDL3/SDL.h"
bool SDL_HasEvents(Uint32 minType, Uint32 maxType);
Header file
Defined in SDL3/SDL_events.h
Overview
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.