summaryrefslogtreecommitdiffstats
path: root/src/core/hid
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/core/hid
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/core/hid')
-rw-r--r--src/core/hid/input_converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index 860aab400..cd41607a7 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -28,7 +28,7 @@ Common::Input::BatteryStatus TransformToBattery(const Common::Input::CallbackSta
if (value > 0.8f) {
battery = Common::Input::BatteryLevel::Full;
}
- if (value >= 1.0f) {
+ if (value >= 0.95f) {
battery = Common::Input::BatteryLevel::Charging;
}
break;