playground-sdk/third_party/SDL3/examples/misc/01-power
2026-10-02 16:54:36 +00:00
..
onmouseover.webp Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
power.c Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
README.txt Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00
thumbnail.png Extract standalone Playground SDK source foundation 2026-10-02 16:54:36 +00:00

This example code reports power status (plugged in, battery level, etc).

Note that only Chrome-based browsers support this API currently. Firefox and
Safari will report this as unknown, but this may change later!