Skip to content

TSdlPowerState

The basic state for the system's power supply.

These are results returned by SdlGetPowerInfo.

Definition

Unit: Neslib.Sdl3.Additional

type TSdlPowerState = (Error, Unknown, OnBattery, NoBattery, Charging, Charged)

Enumeration Values

Error = SDL_POWERSTATE_ERROR

Error determining power status


Unknown = SDL_POWERSTATE_UNKNOWN

Cannot determine power status


OnBattery = SDL_POWERSTATE_ON_BATTERY

Not plugged in, running on the battery


NoBattery = SDL_POWERSTATE_NO_BATTERY

Plugged in, no battery available


Charging = SDL_POWERSTATE_CHARGING

Plugged in, charging battery


Charged = SDL_POWERSTATE_CHARGED

Plugged in, battery charged