---
name: "SDL_PowerState"
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_PowerState"
---

# SDL\_PowerState(3type)

The basic state for the system's power supply.

## NAME

SDL\_PowerState - The basic state for the system's power supply.

## HEADER FILE

Defined in SDL3/SDL\_power.h

## SYNOPSIS

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

**typedef enum SDL\_PowerState** **{**     **SDL\_POWERSTATE\_ERROR = -1,   /\*\*\< error determining power status \*/**     **SDL\_POWERSTATE\_UNKNOWN,      /\*\*\< cannot determine power status \*/**     **SDL\_POWERSTATE\_ON\_BATTERY,   /\*\*\< Not plugged in, running on the battery \*/**     **SDL\_POWERSTATE\_NO\_BATTERY,   /\*\*\< Plugged in, no battery available \*/**     **SDL\_POWERSTATE\_CHARGING,     /\*\*\< Plugged in, charging battery \*/**     **SDL\_POWERSTATE\_CHARGED       /\*\*\< Plugged in, battery charged \*/** **} SDL\_PowerState;**

## DESCRIPTION

These are results returned by  **SDL\_GetPowerInfo** ().

## AVAILABILITY

This enum is available since SDL 3.2.0.
