diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-03 14:14:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 14:14:10 +0100 |
commit | 3032980478e6d633ceee758fa10e194378c1a531 (patch) | |
tree | 0ac864227fcab02f2f9abfe56dbaedd3bb94b040 /src/core/hle/service/hid/controllers/npad.cpp | |
parent | Merge pull request #11943 from liamwhite/silence-logspam (diff) | |
parent | core: hid: Fix wrong battery values (diff) | |
download | yuzu-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/hid/controllers/npad.cpp')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 6 |
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 = {}, |