Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_RegisterEvents - Allocate a set of user-defined events, and return the beginning event number for

Availability

       This function is available since SDL 3.2.0.

Function Parameters

numevents
              the number of events to be allocated.

Header File

       Defined in SDL3/SDL_events.h

Name

       SDL_RegisterEvents  -  Allocate  a  set of user-defined events, and return the beginning event number for
       that set of events.

Return Value

       ( Uint32 ) Returns the beginning event number, or 0 if numevents is invalid or if there  are  not  enough
       user-defined events left.

See Also

(3), SDL_PushEvent(3)

Simple Directmedia Layer                           SDL 3.2.10                              SDL_RegisterEvents(3)

Synopsis

#include"SDL3/SDL.h"Uint32SDL_RegisterEvents(intnumevents);

Thread Safety

       It is safe to call this function from any thread.

See Also