diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-02-13 05:22:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 05:22:38 +0100 |
commit | eaca010ee97ad2bdc8e54b347b93f01bf163c9d8 (patch) | |
tree | 7ec31d2eb0e7ea9216fa242a0e1a43c8abc40ff2 | |
parent | Merge pull request #7852 from Morph1984/new-uuid (diff) | |
parent | hid: Stub IsUsbFullKeyControllerEnabled (diff) | |
download | yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar.gz yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar.bz2 yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar.lz yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar.xz yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.tar.zst yuzu-eaca010ee97ad2bdc8e54b347b93f01bf163c9d8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 12 | ||||
-rw-r--r-- | src/core/hle/service/hid/hid.h | 1 |
2 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 a2bf7defb..d9202ea6c 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -320,7 +320,7 @@ Hid::Hid(Core::System& system_) {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, {309, nullptr, "GetSevenSixAxisSensorFusionStrength"}, {310, &Hid::ResetSevenSixAxisSensorTimestamp, "ResetSevenSixAxisSensorTimestamp"}, - {400, nullptr, "IsUsbFullKeyControllerEnabled"}, + {400, &Hid::IsUsbFullKeyControllerEnabled, "IsUsbFullKeyControllerEnabled"}, {401, nullptr, "EnableUsbFullKeyController"}, {402, nullptr, "IsUsbFullKeyControllerConnected"}, {403, nullptr, "HasBattery"}, @@ -1673,6 +1673,16 @@ void Hid::ResetSevenSixAxisSensorTimestamp(Kernel::HLERequestContext& ctx) { rb.Push(ResultSuccess); } +void Hid::IsUsbFullKeyControllerEnabled(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + + LOG_WARNING(Service_HID, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(false); +} + void Hid::SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto applet_resource_user_id{rp.Pop<u64>()}; diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index d290df161..c281081a7 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -159,6 +159,7 @@ private: void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); void FinalizeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); void ResetSevenSixAxisSensorTimestamp(Kernel::HLERequestContext& ctx); + void IsUsbFullKeyControllerEnabled(Kernel::HLERequestContext& ctx); void SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx); void SetPalmaBoostMode(Kernel::HLERequestContext& ctx); void SetNpadCommunicationMode(Kernel::HLERequestContext& ctx); |