v2026.6.4
All Bundles
Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

Power

Power management routines

Operations

GetInfo # function

Get the current power supply details.

function : GetInfo(secs:IntRef, pct:IntRef) ~ Int

Parameters

NameTypeDescription
secsIntRefseconds of battery life left
pctIntRefpercentage of battery life left, between 0 and 100

Return

TypeDescription
Intstate of the battery, if any