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