summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-04-27 21:37:08 +0200
committerGitHub <noreply@github.com>2020-04-27 21:37:08 +0200
commite8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa (patch)
tree05619eb936d6611a3dc485c54a5343c05ee3b78a /src/core/hle/service/hid/hid.cpp
parentMerge pull request #3742 from FernandoS27/command-list (diff)
parentservices: hid: Stub StopSevenSixAxisSensor. (diff)
downloadyuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.gz
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.bz2
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.lz
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.xz
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.tar.zst
yuzu-e8e04a4b8034e90c213f1ee1ebe09e0a4b352cfa.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r--src/core/hle/service/hid/hid.cpp13
1 files changed, 12 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) {
{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"},
@@ -853,6 +853,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");