Allocate a set of user-defined events, and return the beginning event number for that set of events.
Defined in <SDL3/SDL_events.h>
int numevents); Uint32 SDL_RegisterEvents(
numevents | the number of events to be allocated |
Returns the beginning event number, or 0 if numevents is invalid or if there are not enough user-defined events left.
This function is available since SDL 3.0.0.
<<Include(SDL_UserEvent, , , from="== Code Examples ==", to="== Remarks ==")>>
CategoryAPI, CategoryAPIFunction, CategoryEvents