RetroArch/frontend/drivers
CTCaer 86f8670d0b plat: unix: get better battery stats on sysfs nodes
This addresses 2 issues:

1. Input controllers report battery supplies.
   That causes wrong charging status or capacities if they report percentages instead of levels.
   Such supplies normally report scope attributes that report Unknown or Device type of power supply.
   If reported value is System or the attribute is missing, it's considered a System supply and used.

2. Various systems have backup batteries.
   That causes the wrong capacity to be reported depending on order of node creation.
   This is addressed by keeping track of these and calculating an average.
2021-05-31 18:36:49 +03:00
..
platform_ctr.c (3DS) Change default asset directory 2021-04-28 19:59:03 +02:00
platform_darwin.m Buildfix 2021-03-26 22:13:25 +01:00
platform_dos.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_emscripten.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_gx.c Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
platform_orbis.c Cleanups 2021-04-10 20:47:04 +02:00
platform_ps2.c platform_ps2.c - Use snprintf 2021-05-18 14:15:18 +02:00
platform_ps3.c Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
platform_psp.c Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
platform_qnx.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_switch.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_unix.c plat: unix: get better battery stats on sysfs nodes 2021-05-31 18:36:49 +03:00
platform_unix.h (Sensors API) Android (crash-)fixes/improvements + add option to disable sensor input 2020-09-14 17:52:45 +01:00
platform_uwp.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_wii.c Cleanups 2020-02-04 06:05:00 +01:00
platform_wiiu.c Simplify video_driver_get_ptr 2021-03-21 17:33:44 +01:00
platform_win32.c Small style nits 2021-05-17 15:58:04 +02:00
platform_win32.h Some buildfixes 2020-06-30 08:37:41 +02:00
platform_xdk.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
platform_xdk.h Clean up white space. 2019-02-03 16:00:50 -08:00
platform_xenon.c (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00