summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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
855void 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
855void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { 866void 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;