reorganized directory

This commit is contained in:
Alessandro Mauri 2025-06-09 12:25:48 +02:00
parent 9d507e38cb
commit 076355e2d1
35 changed files with 0 additions and 0 deletions

12
sdl3_power.c3i Normal file
View file

@ -0,0 +1,12 @@
module sdl3::sdl;
typedef PowerState = CInt;
const PowerState POWERSTATE_ERROR @builtin = -1;
const PowerState POWERSTATE_UNKNOWN @builtin = 0;
const PowerState POWERSTATE_ON_BATTERY @builtin = 1;
const PowerState POWERSTATE_NO_BATTERY @builtin = 2;
const PowerState POWERSTATE_CHARGING @builtin = 3;
const PowerState POWERSTATE_CHARGED @builtin = 4;
extern fn PowerState get_power_info(int *seconds, int *percent) @extern("SDL_GetPowerInfo");