diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-10-14 23:30:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 23:30:38 +0200 |
commit | ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433 (patch) | |
tree | 4b04503746cd43789b1a812756974e38868be4cc /src/core/hle/service/hid/hidbus/ringcon.cpp | |
parent | Merge pull request #9055 from liamwhite/hbl (diff) | |
parent | kernel: remove KWritableEvent (diff) | |
download | yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar.gz yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar.bz2 yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar.lz yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar.xz yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.tar.zst yuzu-ae6dd1143c0549fe5bcbd7326c69cbcb6b5a4433.zip |
Diffstat (limited to 'src/core/hle/service/hid/hidbus/ringcon.cpp')
-rw-r--r-- | src/core/hle/service/hid/hidbus/ringcon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hidbus/ringcon.cpp b/src/core/hle/service/hid/hidbus/ringcon.cpp index ad223d649..57f1a2a26 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.cpp +++ b/src/core/hle/service/hid/hidbus/ringcon.cpp @@ -131,12 +131,12 @@ bool RingController::SetCommand(const std::vector<u8>& data) { case RingConCommands::ReadRepCount: case RingConCommands::ReadTotalPushCount: ASSERT_MSG(data.size() == 0x4, "data.size is not 0x4 bytes"); - send_command_async_event->GetWritableEvent().Signal(); + send_command_async_event->Signal(); return true; case RingConCommands::ResetRepCount: ASSERT_MSG(data.size() == 0x4, "data.size is not 0x4 bytes"); total_rep_count = 0; - send_command_async_event->GetWritableEvent().Signal(); + send_command_async_event->Signal(); return true; case RingConCommands::SaveCalData: { ASSERT_MSG(data.size() == 0x14, "data.size is not 0x14 bytes"); @@ -144,14 +144,14 @@ bool RingController::SetCommand(const std::vector<u8>& data) { SaveCalData save_info{}; std::memcpy(&save_info, data.data(), sizeof(SaveCalData)); user_calibration = save_info.calibration; - send_command_async_event->GetWritableEvent().Signal(); + send_command_async_event->Signal(); return true; } default: LOG_ERROR(Service_HID, "Command not implemented {}", command); command = RingConCommands::Error; // Signal a reply to avoid softlocking the game - send_command_async_event->GetWritableEvent().Signal(); + send_command_async_event->Signal(); return false; } } |