From 94103c0c025f04e75d5e163d9f0bdde27bb0c848 Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Sat, 23 Jul 2016 13:15:55 +0200 Subject: Add API to access battery power state Done: - X11, server (tested) - Windows (developed, would be nice to retest) - OSX (not tested) Prepared (not developed): - Android (code is here, but may not compile) - iphone - winrt - bb10 - haiku - javascript --- core/os/os.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/os/os.cpp') diff --git a/core/os/os.cpp b/core/os/os.cpp index 912f7f0b0f..1d670b4466 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -513,6 +513,16 @@ bool OS::is_vsync_enabled() const{ } +PowerState OS::get_power_state() { + return POWERSTATE_UNKNOWN; +} +int OS::get_power_seconds_left() { + return -1; +} +int OS::get_power_percent_left() { + return -1; +} + OS::OS() { last_error=NULL; singleton=this; -- cgit v1.2.3