| Summary: | SDL does not implement SDL_GetPowerInfo() for Android. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Philipp Wiesemann <philipp.wiesemann> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: | patch with power management implementation for Android | ||
Thanks for the patch! http://hg.libsdl.org/SDL/rev/64a6297a8b93 Thank you for applying my patch. I did not add the SDL license comment at the top of the new file SDL_syspower.c only to keep the patch smaller. Now this makes the file inconsistent with the remaining source. Got it, thanks! |
Created attachment 954 [details] patch with power management implementation for Android Hello, 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).