summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 20:31:53 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-29 00:46:54 +0100
commita1490d77ace26ec01a60541239d9a8524b88fcec (patch)
tree8da577293325c3f585a4d031288339885ca26a65 /src/core/hle/service/hid/hid.cpp
parenthle_ipc: Rename ReadBuffer to ReadBufferCopy (diff)
downloadyuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.gz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.bz2
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.lz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.xz
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.zst
yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r--src/core/hle/service/hid/hid.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 294fe927b..f15f1a6bb 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -1026,7 +1026,7 @@ void Hid::SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {
const auto applet_resource_user_id{rp.Pop<u64>()};
applet_resource->GetController<Controller_NPad>(HidController::NPad)
- .SetSupportedNpadIdTypes(ctx.ReadBufferSpan());
+ .SetSupportedNpadIdTypes(ctx.ReadBuffer());
LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id);
@@ -1564,8 +1564,8 @@ void Hid::SendVibrationValues(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
- const auto handles = ctx.ReadBufferSpan(0);
- const auto vibrations = ctx.ReadBufferSpan(1);
+ const auto handles = ctx.ReadBuffer(0);
+ const auto vibrations = ctx.ReadBuffer(1);
std::vector<Core::HID::VibrationDeviceHandle> vibration_device_handles(
handles.size() / sizeof(Core::HID::VibrationDeviceHandle));
@@ -2104,7 +2104,7 @@ void Hid::WritePalmaRgbLedPatternEntry(Kernel::HLERequestContext& ctx) {
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
const auto unknown{rp.Pop<u64>()};
- [[maybe_unused]] const auto buffer = ctx.ReadBufferSpan();
+ [[maybe_unused]] const auto buffer = ctx.ReadBuffer();
LOG_WARNING(Service_HID, "(STUBBED) called, connection_handle={}, unknown={}",
connection_handle.npad_id, unknown);