4#include <SDL3/SDL_power.h>
5#include "SDL3pp_stdinc.h"
44 SDL_POWERSTATE_UNKNOWN;
47 SDL_POWERSTATE_ON_BATTERY;
50 SDL_POWERSTATE_NO_BATTERY;
53 SDL_POWERSTATE_CHARGING;
56 SDL_POWERSTATE_CHARGED;
94 return SDL_GetPowerInfo(seconds, percent);
SDL_PowerState PowerState
The basic state for the system's power supply.
Definition: SDL3pp_power.h:38
constexpr PowerState POWERSTATE_ON_BATTERY
Not plugged in, running on the battery.
Definition: SDL3pp_power.h:46
constexpr PowerState POWERSTATE_UNKNOWN
cannot determine power status
Definition: SDL3pp_power.h:43
PowerState GetPowerInfo(int *seconds, int *percent)
Get the current power supply details.
Definition: SDL3pp_power.h:92
constexpr PowerState POWERSTATE_CHARGING
Plugged in, charging battery.
Definition: SDL3pp_power.h:52
constexpr PowerState POWERSTATE_NO_BATTERY
Plugged in, no battery available.
Definition: SDL3pp_power.h:49
constexpr PowerState POWERSTATE_ERROR
error determining power status
Definition: SDL3pp_power.h:40
constexpr PowerState POWERSTATE_CHARGED
Plugged in, battery charged.
Definition: SDL3pp_power.h:55
Main include header for the SDL3pp library.