SDL_AppEvent_func3type
Function pointer typedef for sdl_appevent .
Usage
#include "SDL3/SDL.h"
typedef SDL_AppResult (SDLCALL *SDL_AppEvent_func)(void *appstate, SDL_Event *event);
Header file
Defined in SDL3/SDL_init.h
Overview
These are used by SDL_EnterAppMainCallbacks . This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement
SDL_AppEvent
directly.
Function parameters
appstate
|
an optional pointer, provided by the app in |
|---|---|
event
|
the new event for the app to examine. |
Return value
Returns SDL_APP_FAILURE
to terminate with an error,
SDL_APP_SUCCESS
to terminate with success,
SDL_APP_CONTINUE
to continue.