summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2020-09-30 02:37:22 +0200
committergerman <german@thesoftwareartisans.com>2020-09-30 17:00:24 +0200
commit283616dbd8e7af7440156da2be0b2e8047a87936 (patch)
treefb5f7752c486e8964b3a8f273e5cbdf40db281c3 /src/core/hle/service/hid/hid.cpp
parentMerge pull request #4728 from Morph1984/applets-on-top (diff)
downloadyuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.gz
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.bz2
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.lz
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.xz
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.zst
yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hid.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 395e83b3f..6bb79622d 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -173,7 +173,7 @@ Hid::Hid(Core::System& system) : ServiceFramework("hid"), system(system) {
{66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"},
{67, &Hid::StopSixAxisSensor, "StopSixAxisSensor"},
{68, nullptr, "IsSixAxisSensorFusionEnabled"},
- {69, nullptr, "EnableSixAxisSensorFusion"},
+ {69, &Hid::EnableSixAxisSensorFusion, "EnableSixAxisSensorFusion"},
{70, nullptr, "SetSixAxisSensorFusionParameters"},
{71, nullptr, "GetSixAxisSensorFusionParameters"},
{72, nullptr, "ResetSixAxisSensorFusionParameters"},
@@ -458,6 +458,19 @@ void Hid::StopSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
}
+void Hid::EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto enable{rp.Pop<bool>()};
+ const auto handle{rp.Pop<u32>()};
+ const auto applet_resource_user_id{rp.Pop<u64>()};
+
+ LOG_WARNING(Service_HID, "(STUBBED) called, handle={}, applet_resource_user_id={}", handle,
+ applet_resource_user_id);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto handle{rp.Pop<u32>()};