diff options
Diffstat (limited to 'src')
| -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> { |