class GAME_BATTERY General cluster: input description: "Battery/power supply informations. You should never take a battery status as absolute truth. Batteries (especially failing batteries) are delicate hardware, and the values reported here are best estimates based on what that hardware reports. It's not uncommon for older batteries to lose stored power much faster than it reports, or completely drain when reporting it has 20 percent left, etc. Battery status can change at any time; if you are concerned with power state, you should call this function frequently, and perhaps ignore changes until they seem to be stable for a few seconds." create: default_create Ancestors GAME_SDL_ANY* Queries has_error: BOOLEAN is_life_left_valid: BOOLEAN is_state_charged: BOOLEAN is_state_charging: BOOLEAN is_state_no_battery: BOOLEAN is_state_on_battery: BOOLEAN is_state_unknown: BOOLEAN last_error: READABLE_STRING_GENERAL percentage_left: INTEGER_32 seconds_left: INTEGER_32 Commands update
Generated by ISE EiffelStudio