summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2021-11-26 03:12:47 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-27 16:03:10 +0100
commitf966c05a74e2406a6416cf6295459e25c0d675ec (patch)
tree0730998d237a3ac81260405b816dda5a8d31ed6b
parentMerge pull request #7255 from german77/kraken (diff)
downloadyuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.gz
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.bz2
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.lz
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.xz
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.zst
yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.zip
-rw-r--r--src/core/hle/service/hid/hid.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 95fc07325..b36689552 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -1883,7 +1883,7 @@ public:
{317, nullptr, "GetNpadLeftRightInterfaceType"},
{318, nullptr, "HasBattery"},
{319, nullptr, "HasLeftRightBattery"},
- {321, nullptr, "GetUniquePadsFromNpad"},
+ {321, &HidSys::GetUniquePadsFromNpad, "GetUniquePadsFromNpad"},
{322, nullptr, "GetIrSensorState"},
{323, nullptr, "GetXcdHandleForNpadWithIrSensor"},
{324, nullptr, "GetUniquePadButtonSet"},
@@ -2054,6 +2054,18 @@ private:
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
+
+ void GetUniquePadsFromNpad(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto npad_id_type{rp.PopEnum<Core::HID::NpadIdType>()};
+
+ const s64 total_entries = 0;
+ LOG_WARNING(Service_HID, "(STUBBED) called, npad_id_type={}", npad_id_type);
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(total_entries);
+ }
};
class HidTmp final : public ServiceFramework<HidTmp> {