---
name: "SDL_AppEvent_func"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_AppEvent_func"
---

# SDL\_AppEvent\_func(3type)

Function pointer typedef for SDL\_AppEvent .

## NAME

SDL\_AppEvent\_func - Function pointer typedef for  **SDL\_AppEvent** .

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef SDL\_AppResult (SDLCALL \*SDL\_AppEvent\_func)(void \*appstate, SDL\_Event \*event);**

## DESCRIPTION

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  **SDL\_AppInit** .

- *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.

## AVAILABILITY

This datatype is available since SDL 3.2.0.
