SDL_HasEvent - Check for the existence of a certain event type in the event queue.
Contents
Availability
This function is available since SDL 3.2.0.
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.
Header File
Defined in SDL3/SDL_events.h
Name
SDL_HasEvent - Check for the existence of a certain event type in the event queue.
Return Value
Returns true if events matching type are present, or false if events matching type are not present.
See Also
•(3), SDL_HasEvents(3) Simple Directmedia Layer SDL 3.2.10 SDL_HasEvent(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_HasEvent(Uint32type);
Thread Safety
It is safe to call this function from any thread.
