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
This commit is contained in:
Julian Murgia 2016-07-23 13:15:55 +02:00 committed by Rémi Verschelde
parent ef174abf6d
commit 94103c0c02
44 changed files with 2162 additions and 1 deletions

View file

@ -159,6 +159,8 @@ void OS_Android::initialize(const VideoMode& p_desired,int p_video_driver,int p_
input = memnew( InputDefault );
input->set_fallback_mapping("Default Android Gamepad");
power_manager = memnew( power_android );
}
void OS_Android::set_main_loop( MainLoop * p_main_loop ) {