-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an environment call for querying the device's battery (#15387)
* First crack at RETRO_ENVIRONMENT_GET_POWER_STATUS * First crack at RETRO_ENVIRONMENT_GET_POWER_STATUS * Remove a stray comma * Rename some symbols for clarity * Change some references to the old environment call's name * Fix some mixed-up cases in checking the power state - I misunderstood the meaning of these enums * Add a comment * Rename seconds_remaining to seconds * Clarify some comments about the power state * Adjust power state behavior - Don't return 0 seconds; instead, return NO_ESTIMATE - Don't force percent to 100 in the CHARGED state * Adhere to C89 * Mention the environment call in CHANGES.md
- Loading branch information
Showing
3 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters