summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-02-02 19:22:22 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2022-02-02 20:18:06 +0100
commit064aa3de117085ec20bef57ef1d4be76a29a7a57 (patch)
tree9267efe679785b016c7f8df296f68b48c35fb90d /src/input_common
parentMerge pull request #7833 from lioncash/file-sys (diff)
downloadyuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar.gz
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar.bz2
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar.lz
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar.xz
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.tar.zst
yuzu-064aa3de117085ec20bef57ef1d4be76a29a7a57.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: