summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-05 02:23:35 +0100
committerGitHub <noreply@github.com>2022-02-05 02:23:35 +0100
commit0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49 (patch)
treeacc84dad6f8634649d3856172f2196872c68a1f8 /src/input_common
parentMerge pull request #7848 from Morph1984/unused-core-include (diff)
parentyuzu: ui: Improve battery symbols (diff)
downloadyuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar.gz
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar.bz2
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar.lz
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar.xz
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.tar.zst
yuzu-0ec5b9bff2ccf777a673f92cd6d3403fa39d9c49.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/drivers/sdl_driver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp
index 577bf5c31..b031a8523 100644
--- a/src/input_common/drivers/sdl_driver.cpp
+++ b/src/input_common/drivers/sdl_driver.cpp
@@ -181,11 +181,10 @@ public:
case SDL_JOYSTICK_POWER_EMPTY:
return BatteryLevel::Empty;
case SDL_JOYSTICK_POWER_LOW:
- return BatteryLevel::Critical;
- case SDL_JOYSTICK_POWER_MEDIUM:
return BatteryLevel::Low;
- case SDL_JOYSTICK_POWER_FULL:
+ case SDL_JOYSTICK_POWER_MEDIUM:
return BatteryLevel::Medium;
+ case SDL_JOYSTICK_POWER_FULL:
case SDL_JOYSTICK_POWER_MAX:
return BatteryLevel::Full;
case SDL_JOYSTICK_POWER_UNKNOWN: