diff options
| author | 2020-09-29 19:37:22 -0500 | |
|---|---|---|
| committer | 2020-09-30 10:00:24 -0500 | |
| commit | 283616dbd8e7af7440156da2be0b2e8047a87936 (patch) | |
| tree | fb5f7752c486e8964b3a8f273e5cbdf40db281c3 | |
| parent | Merge pull request #4728 from Morph1984/applets-on-top (diff) | |
| download | yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.gz yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.tar.xz yuzu-283616dbd8e7af7440156da2be0b2e8047a87936.zip | |
Stubbed EnableSixAxisSensorFusion
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 15 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.h | 1 |
2 files changed, 15 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) { | |||
| 173 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, | 173 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, |
| 174 | {67, &Hid::StopSixAxisSensor, "StopSixAxisSensor"}, | 174 | {67, &Hid::StopSixAxisSensor, "StopSixAxisSensor"}, |
| 175 | {68, nullptr, "IsSixAxisSensorFusionEnabled"}, | 175 | {68, nullptr, "IsSixAxisSensorFusionEnabled"}, |
| 176 | {69, nullptr, "EnableSixAxisSensorFusion"}, | 176 | {69, &Hid::EnableSixAxisSensorFusion, "EnableSixAxisSensorFusion"}, |
| 177 | {70, nullptr, "SetSixAxisSensorFusionParameters"}, | 177 | {70, nullptr, "SetSixAxisSensorFusionParameters"}, |
| 178 | {71, nullptr, "GetSixAxisSensorFusionParameters"}, | 178 | {71, nullptr, "GetSixAxisSensorFusionParameters"}, |
| 179 | {72, nullptr, "ResetSixAxisSensorFusionParameters"}, | 179 | {72, nullptr, "ResetSixAxisSensorFusionParameters"}, |
| @@ -458,6 +458,19 @@ void Hid::StopSixAxisSensor(Kernel::HLERequestContext& ctx) { | |||
| 458 | rb.Push(RESULT_SUCCESS); | 458 | rb.Push(RESULT_SUCCESS); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | void Hid::EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx) { | ||
| 462 | IPC::RequestParser rp{ctx}; | ||
| 463 | const auto enable{rp.Pop<bool>()}; | ||
| 464 | const auto handle{rp.Pop<u32>()}; | ||
| 465 | const auto applet_resource_user_id{rp.Pop<u64>()}; | ||
| 466 | |||
| 467 | LOG_WARNING(Service_HID, "(STUBBED) called, handle={}, applet_resource_user_id={}", handle, | ||
| 468 | applet_resource_user_id); | ||
| 469 | |||
| 470 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 471 | rb.Push(RESULT_SUCCESS); | ||
| 472 | } | ||
| 473 | |||
| 461 | void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { | 474 | void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { |
| 462 | IPC::RequestParser rp{ctx}; | 475 | IPC::RequestParser rp{ctx}; |
| 463 | const auto handle{rp.Pop<u32>()}; | 476 | const auto handle{rp.Pop<u32>()}; |
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index e04aaf1e9..b7f6f4aa4 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h | |||
| @@ -97,6 +97,7 @@ private: | |||
| 97 | void ActivateNpadWithRevision(Kernel::HLERequestContext& ctx); | 97 | void ActivateNpadWithRevision(Kernel::HLERequestContext& ctx); |
| 98 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx); | 98 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 99 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); | 99 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 100 | void EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx); | ||
| 100 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 101 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |
| 101 | void GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 102 | void GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |
| 102 | void ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 103 | void ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |