diff options
author | german77 <juangerman-13@hotmail.com> | 2024-01-07 04:17:57 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2024-01-07 04:18:44 +0100 |
commit | a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b (patch) | |
tree | e13147afa84aaba79e36bbee59b0aa86f81ccf38 /src/core/hle/service/hid/hid_server.cpp | |
parent | Merge pull request #12596 from german77/hid_qlaunch (diff) | |
download | yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar.gz yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar.bz2 yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar.lz yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar.xz yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.tar.zst yuzu-a36f4d0a9f2c0fee837856e4db3e4ca10bfed25b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hid_server.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cpp index 2ff00d30d..75bf3e682 100644 --- a/src/core/hle/service/hid/hid_server.cpp +++ b/src/core/hle/service/hid/hid_server.cpp @@ -1466,23 +1466,27 @@ void IHidServer::SetNpadCaptureButtonAssignment(HLERequestContext& ctx) { const auto parameters{rp.PopRaw<Parameters>()}; - LOG_WARNING(Service_HID, - "(STUBBED) called, npad_styleset={}, applet_resource_user_id={}, button={}", - parameters.npad_styleset, parameters.applet_resource_user_id, parameters.button); + LOG_INFO(Service_HID, "called, npad_styleset={}, applet_resource_user_id={}, button={}", + parameters.npad_styleset, parameters.applet_resource_user_id, parameters.button); + + const auto result = GetResourceManager()->GetNpad()->SetNpadCaptureButtonAssignment( + parameters.applet_resource_user_id, parameters.npad_styleset, parameters.button); IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); + rb.Push(result); } void IHidServer::ClearNpadCaptureButtonAssignment(HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto applet_resource_user_id{rp.Pop<u64>()}; - LOG_WARNING(Service_HID, "(STUBBED) called, applet_resource_user_id={}", - applet_resource_user_id); + LOG_INFO(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id); + + const auto result = + GetResourceManager()->GetNpad()->ClearNpadCaptureButtonAssignment(applet_resource_user_id); IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); + rb.Push(result); } void IHidServer::GetVibrationDeviceInfo(HLERequestContext& ctx) { |