logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_PowerState - The basic state for the system's power supply.

Availability

       This enum is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                              SDL_PowerState(3type)

Description

       These are results returned by SDL_GetPowerInfo ().

Header File

       Defined in SDL3/SDL_power.h

Name

       SDL_PowerState - The basic state for the system's power supply.

Synopsis

#include"SDL3/SDL.h"typedefenumSDL_PowerState{SDL_POWERSTATE_ERROR=-1,/**<errordeterminingpowerstatus*/SDL_POWERSTATE_UNKNOWN,/**<cannotdeterminepowerstatus*/SDL_POWERSTATE_ON_BATTERY,/**<Notpluggedin,runningonthebattery*/SDL_POWERSTATE_NO_BATTERY,/**<Pluggedin,nobatteryavailable*/SDL_POWERSTATE_CHARGING,/**<Pluggedin,chargingbattery*/SDL_POWERSTATE_CHARGED/**<Pluggedin,batterycharged*/}SDL_PowerState;

See Also