RetroArch/libretro-common
Jesse Talavera-Greenberg 954b04669c
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
2023-08-12 16:41:05 -07:00
..
2023-07-02 05:46:45 +02:00
2023-01-09 00:51:05 +01:00
2023-02-23 13:15:14 +01:00
2023-06-14 23:46:27 +02:00
2023-07-02 05:46:45 +02:00
2023-05-30 19:34:55 +02:00
2020-01-31 15:43:42 +01:00
2023-02-23 13:15:14 +01:00
2023-07-17 17:49:49 +02:00
2022-08-23 15:04:47 +02:00
2023-08-04 09:20:50 +02:00
2022-09-18 19:25:21 +02:00
2023-05-28 22:45:46 +02:00
2022-11-21 20:56:28 +01:00
2023-01-09 00:51:05 +01:00
2023-06-14 19:51:31 +02:00
2020-12-13 21:21:21 +01:00