Fixed bug 1606 - SDL does not implement SDL_GetPowerInfo() for Android.
Philipp Wiesemann 2012-09-22 05:26:11 PDT currently SDL (HG) does not implement the power management functionality of SDL_GetPowerInfo() for Android. I attached a patch which tries to implement this functionality (JNI only, API 5). It supports plugged state and battery percent return values but not remaining seconds (which are not available on Android).
This commit is contained in:
parent
aeb2100823
commit
82b0ec31cd
5 changed files with 102 additions and 1 deletions
|
@ -30,6 +30,7 @@ LOCAL_SRC_FILES := \
|
|||
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/power/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/render/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
|
||||
$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue