logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HasEvent - Check for the existence of a certain event type in the event queue.

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.

See Also