diff options
| author | 2020-04-25 15:30:52 -0700 | |
|---|---|---|
| committer | 2020-04-25 15:38:56 -0700 | |
| commit | c1ffaa8b299323c7f6924f4b98802ebac5158f58 (patch) | |
| tree | 8cb0125c032f73bef277061e09c65bf8d820d631 /src | |
| parent | Merge pull request #3721 from ReinUsesLisp/sort-devices (diff) | |
| download | yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.gz yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.xz yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.zip | |
services: hid: Stub StopSevenSixAxisSensor.
- Used by The Legend of Zelda: Breath of the Wild v1.6.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 13 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.h | 1 |
2 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 d6031a987..e307f4d81 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -233,7 +233,7 @@ Hid::Hid(Core::System& system) : ServiceFramework("hid"), system(system) { | |||
| 233 | {302, nullptr, "StopConsoleSixAxisSensor"}, | 233 | {302, nullptr, "StopConsoleSixAxisSensor"}, |
| 234 | {303, nullptr, "ActivateSevenSixAxisSensor"}, | 234 | {303, nullptr, "ActivateSevenSixAxisSensor"}, |
| 235 | {304, nullptr, "StartSevenSixAxisSensor"}, | 235 | {304, nullptr, "StartSevenSixAxisSensor"}, |
| 236 | {305, nullptr, "StopSevenSixAxisSensor"}, | 236 | {305, &Hid::StopSevenSixAxisSensor, "StopSevenSixAxisSensor"}, |
| 237 | {306, &Hid::InitializeSevenSixAxisSensor, "InitializeSevenSixAxisSensor"}, | 237 | {306, &Hid::InitializeSevenSixAxisSensor, "InitializeSevenSixAxisSensor"}, |
| 238 | {307, nullptr, "FinalizeSevenSixAxisSensor"}, | 238 | {307, nullptr, "FinalizeSevenSixAxisSensor"}, |
| 239 | {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, | 239 | {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, |
| @@ -852,6 +852,17 @@ void Hid::SetPalmaBoostMode(Kernel::HLERequestContext& ctx) { | |||
| 852 | rb.Push(RESULT_SUCCESS); | 852 | rb.Push(RESULT_SUCCESS); |
| 853 | } | 853 | } |
| 854 | 854 | ||
| 855 | void Hid::StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { | ||
| 856 | IPC::RequestParser rp{ctx}; | ||
| 857 | const auto applet_resource_user_id{rp.Pop<u64>()}; | ||
| 858 | |||
| 859 | LOG_WARNING(Service_HID, "(STUBBED) called, applet_resource_user_id={}", | ||
| 860 | applet_resource_user_id); | ||
| 861 | |||
| 862 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 863 | rb.Push(RESULT_SUCCESS); | ||
| 864 | } | ||
| 865 | |||
| 855 | void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { | 866 | void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { |
| 856 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 867 | LOG_WARNING(Service_HID, "(STUBBED) called"); |
| 857 | 868 | ||
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index 039c38b58..23552efb1 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h | |||
| @@ -128,6 +128,7 @@ private: | |||
| 128 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); | 128 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 129 | void SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx); | 129 | void SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx); |
| 130 | void SetPalmaBoostMode(Kernel::HLERequestContext& ctx); | 130 | void SetPalmaBoostMode(Kernel::HLERequestContext& ctx); |
| 131 | void StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx); | ||
| 131 | void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); | 132 | void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 132 | 133 | ||
| 133 | std::shared_ptr<IAppletResource> applet_resource; | 134 | std::shared_ptr<IAppletResource> applet_resource; |