---
name: "SDL_GetAppState"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetAppState"
---

# SDL\_GetAppState(3)

Get the state of the application

## NAME

**SDL\_GetAppState** - Get the state of the application

## SYNOPSIS

**#include "SDL.h"**

**Uint8 SDL\_GetAppState**(**void**);

## DESCRIPTION

This function returns the current state of the application. The value returned is a bitwise combination of:

- **SDL\_APPMOUSEFOCUS**

  The application has mouse focus.

- **SDL\_APPINPUTFOCUS**

  The application has keyboard focus

- **SDL\_APPACTIVE**

  The application is visible

## SEE ALSO

**SDL\_ActiveEvent**
