summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-03 14:14:10 +0100
committerGitHub <noreply@github.com>2023-11-03 14:14:10 +0100
commit3032980478e6d633ceee758fa10e194378c1a531 (patch)
tree0ac864227fcab02f2f9abfe56dbaedd3bb94b040 /src/core/hle/service
parentMerge pull request #11943 from liamwhite/silence-logspam (diff)
parentcore: hid: Fix wrong battery values (diff)
downloadyuzu-3032980478e6d633ceee758fa10e194378c1a531.tar
yuzu-3032980478e6d633ceee758fa10e194378c1a531.tar.gz
yuzu-3032980478e6d633ceee758fa10e194378c1a531.tar.bz2
yuzu-3032980478e6d633ceee758fa10e194378c1a531.tar.lz
yuzu-3032980478e6d633ceee758fa10e194378c1a531.tar.xz
yuzu-3032980478e6d633ceee758fa10e194378c1a531.tar.zst
yuzu-3032980478e6d633ceee758fa10e194378c1a531.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index bc822f19e..21695bda2 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -1108,9 +1108,9 @@ Result Controller_NPad::DisconnectNpad(Core::HID::NpadIdType npad_id) {
shared_memory->sixaxis_dual_right_properties.raw = 0;
shared_memory->sixaxis_left_properties.raw = 0;
shared_memory->sixaxis_right_properties.raw = 0;
- shared_memory->battery_level_dual = 0;
- shared_memory->battery_level_left = 0;
- shared_memory->battery_level_right = 0;
+ shared_memory->battery_level_dual = Core::HID::NpadBatteryLevel::Empty;
+ shared_memory->battery_level_left = Core::HID::NpadBatteryLevel::Empty;
+ shared_memory->battery_level_right = Core::HID::NpadBatteryLevel::Empty;
shared_memory->fullkey_color = {
.attribute = ColorAttribute::NoController,
.fullkey = {},