summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mat M2020-04-27 15:37:08 -0400
committerGravatar GitHub2020-04-27 15:37:08 -0400
commite8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa (patch)
tree05619eb936d6611a3dc485c54a5343c05ee3b78a
parentMerge pull request #3742 from FernandoS27/command-list (diff)
parentservices: hid: Stub StopSevenSixAxisSensor. (diff)
downloadyuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.gz
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.xz
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.zip
Merge pull request #3797 from slashiee/hid-stub
services: hid: Stub StopSevenSixAxisSensor.
-rw-r--r--src/core/hle/service/hid/hid.cpp13
-rw-r--r--src/core/hle/service/hid/hid.h1
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 a5fa3c7c4..5559587e3 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"},
@@ -853,6 +853,17 @@ void Hid::SetPalmaBoostMode(Kernel::HLERequestContext& ctx) {
853 rb.Push(RESULT_SUCCESS); 853 rb.Push(RESULT_SUCCESS);
854} 854}
855 855
856void Hid::StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
857 IPC::RequestParser rp{ctx};
858 const auto applet_resource_user_id{rp.Pop<u64>()};
859
860 LOG_WARNING(Service_HID, "(STUBBED) called, applet_resource_user_id={}",
861 applet_resource_user_id);
862
863 IPC::ResponseBuilder rb{ctx, 2};
864 rb.Push(RESULT_SUCCESS);
865}
866
856void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { 867void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
857 LOG_WARNING(Service_HID, "(STUBBED) called"); 868 LOG_WARNING(Service_HID, "(STUBBED) called");
858 869
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;