diff options
Diffstat (limited to 'src')
| -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 90a71ab1c..001427fd8 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -188,7 +188,7 @@ Hid::Hid(Core::System& system) : ServiceFramework("hid"), system(system) { | |||
| 188 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, | 188 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, |
| 189 | {67, &Hid::StopSixAxisSensor, "StopSixAxisSensor"}, | 189 | {67, &Hid::StopSixAxisSensor, "StopSixAxisSensor"}, |
| 190 | {68, nullptr, "IsSixAxisSensorFusionEnabled"}, | 190 | {68, nullptr, "IsSixAxisSensorFusionEnabled"}, |
| 191 | {69, nullptr, "EnableSixAxisSensorFusion"}, | 191 | {69, &Hid::EnableSixAxisSensorFusion, "EnableSixAxisSensorFusion"}, |
| 192 | {70, nullptr, "SetSixAxisSensorFusionParameters"}, | 192 | {70, nullptr, "SetSixAxisSensorFusionParameters"}, |
| 193 | {71, nullptr, "GetSixAxisSensorFusionParameters"}, | 193 | {71, nullptr, "GetSixAxisSensorFusionParameters"}, |
| 194 | {72, nullptr, "ResetSixAxisSensorFusionParameters"}, | 194 | {72, nullptr, "ResetSixAxisSensorFusionParameters"}, |
| @@ -473,6 +473,19 @@ void Hid::StopSixAxisSensor(Kernel::HLERequestContext& ctx) { | |||
| 473 | rb.Push(RESULT_SUCCESS); | 473 | rb.Push(RESULT_SUCCESS); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | void Hid::EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx) { | ||
| 477 | IPC::RequestParser rp{ctx}; | ||
| 478 | const auto enable{rp.Pop<bool>()}; | ||
| 479 | const auto handle{rp.Pop<u32>()}; | ||
| 480 | const auto applet_resource_user_id{rp.Pop<u64>()}; | ||
| 481 | |||
| 482 | LOG_WARNING(Service_HID, "(STUBBED) called, handle={}, applet_resource_user_id={}", handle, | ||
| 483 | applet_resource_user_id); | ||
| 484 | |||
| 485 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 486 | rb.Push(RESULT_SUCCESS); | ||
| 487 | } | ||
| 488 | |||
| 476 | void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { | 489 | void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { |
| 477 | IPC::RequestParser rp{ctx}; | 490 | IPC::RequestParser rp{ctx}; |
| 478 | const auto handle{rp.Pop<u32>()}; | 491 | 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 3cfd72a51..1c7d39b67 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h | |||
| @@ -99,6 +99,7 @@ private: | |||
| 99 | void ActivateNpadWithRevision(Kernel::HLERequestContext& ctx); | 99 | void ActivateNpadWithRevision(Kernel::HLERequestContext& ctx); |
| 100 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx); | 100 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 101 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); | 101 | void StopSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 102 | void EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx); | ||
| 102 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 103 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |
| 103 | void GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 104 | void GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |
| 104 | void ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); | 105 | void ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx); |