diff options
| author | 2021-11-25 20:12:47 -0600 | |
|---|---|---|
| committer | 2021-11-27 09:03:10 -0600 | |
| commit | f966c05a74e2406a6416cf6295459e25c0d675ec (patch) | |
| tree | 0730998d237a3ac81260405b816dda5a8d31ed6b /src/core | |
| parent | Merge pull request #7255 from german77/kraken (diff) | |
| download | yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.gz yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.tar.xz yuzu-f966c05a74e2406a6416cf6295459e25c0d675ec.zip | |
core/hid: Stub GetUniquePadsFromNpad
Used in checkpoint homebrew
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 14 |
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: | |||
| 1883 | {317, nullptr, "GetNpadLeftRightInterfaceType"}, | 1883 | {317, nullptr, "GetNpadLeftRightInterfaceType"}, |
| 1884 | {318, nullptr, "HasBattery"}, | 1884 | {318, nullptr, "HasBattery"}, |
| 1885 | {319, nullptr, "HasLeftRightBattery"}, | 1885 | {319, nullptr, "HasLeftRightBattery"}, |
| 1886 | {321, nullptr, "GetUniquePadsFromNpad"}, | 1886 | {321, &HidSys::GetUniquePadsFromNpad, "GetUniquePadsFromNpad"}, |
| 1887 | {322, nullptr, "GetIrSensorState"}, | 1887 | {322, nullptr, "GetIrSensorState"}, |
| 1888 | {323, nullptr, "GetXcdHandleForNpadWithIrSensor"}, | 1888 | {323, nullptr, "GetXcdHandleForNpadWithIrSensor"}, |
| 1889 | {324, nullptr, "GetUniquePadButtonSet"}, | 1889 | {324, nullptr, "GetUniquePadButtonSet"}, |
| @@ -2054,6 +2054,18 @@ private: | |||
| 2054 | IPC::ResponseBuilder rb{ctx, 2}; | 2054 | IPC::ResponseBuilder rb{ctx, 2}; |
| 2055 | rb.Push(ResultSuccess); | 2055 | rb.Push(ResultSuccess); |
| 2056 | } | 2056 | } |
| 2057 | |||
| 2058 | void GetUniquePadsFromNpad(Kernel::HLERequestContext& ctx) { | ||
| 2059 | IPC::RequestParser rp{ctx}; | ||
| 2060 | const auto npad_id_type{rp.PopEnum<Core::HID::NpadIdType>()}; | ||
| 2061 | |||
| 2062 | const s64 total_entries = 0; | ||
| 2063 | LOG_WARNING(Service_HID, "(STUBBED) called, npad_id_type={}", npad_id_type); | ||
| 2064 | |||
| 2065 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 2066 | rb.Push(ResultSuccess); | ||
| 2067 | rb.Push(total_entries); | ||
| 2068 | } | ||
| 2057 | }; | 2069 | }; |
| 2058 | 2070 | ||
| 2059 | class HidTmp final : public ServiceFramework<HidTmp> { | 2071 | class HidTmp final : public ServiceFramework<HidTmp> { |