summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM&M <goldtextwitch@outlook.com>2020-04-26 00:30:52 +0200
committerM&M <goldtextwitch@outlook.com>2020-04-26 00:38:56 +0200
commitc1ffaa8b299323c7f6924f4b98802ebac5158f58 (patch)
tree8cb0125c032f73bef277061e09c65bf8d820d631
parentMerge pull request #3721 from ReinUsesLisp/sort-devices (diff)
downloadyuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.gz
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.bz2
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.lz
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.xz
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.tar.zst
yuzu-c1ffaa8b299323c7f6924f4b98802ebac5158f58.zip
-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) {
{302, nullptr, "StopConsoleSixAxisSensor"},
{303, nullptr, "ActivateSevenSixAxisSensor"},
{304, nullptr, "StartSevenSixAxisSensor"},
- {305, nullptr, "StopSevenSixAxisSensor"},
+ {305, &Hid::StopSevenSixAxisSensor, "StopSevenSixAxisSensor"},
{306, &Hid::InitializeSevenSixAxisSensor, "InitializeSevenSixAxisSensor"},
{307, nullptr, "FinalizeSevenSixAxisSensor"},
{308, nullptr, "SetSevenSixAxisSensorFusionStrength"},
@@ -852,6 +852,17 @@ void Hid::SetPalmaBoostMode(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
}
+void Hid::StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto applet_resource_user_id{rp.Pop<u64>()};
+
+ LOG_WARNING(Service_HID, "(STUBBED) called, applet_resource_user_id={}",
+ applet_resource_user_id);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
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:
void StopSixAxisSensor(Kernel::HLERequestContext& ctx);
void SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx);
void SetPalmaBoostMode(Kernel::HLERequestContext& ctx);
+ void StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
std::shared_ptr<IAppletResource> applet_resource;