SDL_RegisterEvents - Man Page

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

Synopsis

#include <SDL3/SDL_events.h>

Uint32 SDL_RegisterEvents(int numevents);

Function Parameters

numevents

the number of events to be allocated.

Return Value

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

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_PushEvent(3)

Referenced By

SDL_PushEvent(3).

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS