---
name: "SDL_InitFlags"
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_InitFlags"
---

# SDL\_InitFlags(3type)

Initialization flags for SDL\_Init and/or SDL\_InitSubSystem

## NAME

SDL\_InitFlags - Initialization flags for  **SDL\_Init**\
  and/or  **SDL\_InitSubSystem**

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

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

**typedef Uint32 SDL\_InitFlags;** **#define SDL\_INIT\_AUDIO      0x00000010u /\*\*\< \`SDL\_INIT\_AUDIO\` implies \`SDL\_INIT\_EVENTS\` \*/** **#define SDL\_INIT\_VIDEO      0x00000020u /\*\*\< \`SDL\_INIT\_VIDEO\` implies \`SDL\_INIT\_EVENTS\`, should be initialized on the main thread \*/** **#define SDL\_INIT\_JOYSTICK   0x00000200u /\*\*\< \`SDL\_INIT\_JOYSTICK\` implies \`SDL\_INIT\_EVENTS\`, should be initialized on the same thread as SDL\_INIT\_VIDEO on Windows if you don't set SDL\_HINT\_JOYSTICK\_THREAD \*/** **#define SDL\_INIT\_HAPTIC     0x00001000u** **#define SDL\_INIT\_GAMEPAD    0x00002000u /\*\*\< \`SDL\_INIT\_GAMEPAD\` implies \`SDL\_INIT\_JOYSTICK\` \*/** **#define SDL\_INIT\_EVENTS     0x00004000u** **#define SDL\_INIT\_SENSOR     0x00008000u /\*\*\< \`SDL\_INIT\_SENSOR\` implies \`SDL\_INIT\_EVENTS\` \*/** **#define SDL\_INIT\_CAMERA     0x00010000u /\*\*\< \`SDL\_INIT\_CAMERA\` implies \`SDL\_INIT\_EVENTS\` \*/**

## DESCRIPTION

These are the flags which may be passed to  **SDL\_Init** (). You should specify the subsystems which you will be using in your application.

## AVAILABILITY

This datatype is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_Init**(3)](/SDL_Init/3.md), **•**(3), [**SDL\_Quit**(3)](/SDL_Quit/3.md), **•**(3), [**SDL\_InitSubSystem**(3)](/SDL_InitSubSystem/3.md), **•**(3), [**SDL\_QuitSubSystem**(3)](/SDL_QuitSubSystem/3.md), **•**(3), [**SDL\_WasInit**(3)](/SDL_WasInit/3.md)
