diff options
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index dcdfa0e19..970942d3f 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -291,6 +291,7 @@ private: | |||
| 291 | class Hid final : public ServiceFramework<Hid> { | 291 | class Hid final : public ServiceFramework<Hid> { |
| 292 | public: | 292 | public: |
| 293 | Hid() : ServiceFramework("hid") { | 293 | Hid() : ServiceFramework("hid") { |
| 294 | // clang-format off | ||
| 294 | static const FunctionInfo functions[] = { | 295 | static const FunctionInfo functions[] = { |
| 295 | {0, &Hid::CreateAppletResource, "CreateAppletResource"}, | 296 | {0, &Hid::CreateAppletResource, "CreateAppletResource"}, |
| 296 | {1, &Hid::ActivateDebugPad, "ActivateDebugPad"}, | 297 | {1, &Hid::ActivateDebugPad, "ActivateDebugPad"}, |
| @@ -333,15 +334,13 @@ public: | |||
| 333 | {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"}, | 334 | {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"}, |
| 334 | {103, &Hid::ActivateNpad, "ActivateNpad"}, | 335 | {103, &Hid::ActivateNpad, "ActivateNpad"}, |
| 335 | {104, nullptr, "DeactivateNpad"}, | 336 | {104, nullptr, "DeactivateNpad"}, |
| 336 | {106, &Hid::AcquireNpadStyleSetUpdateEventHandle, | 337 | {106, &Hid::AcquireNpadStyleSetUpdateEventHandle, "AcquireNpadStyleSetUpdateEventHandle"}, |
| 337 | "AcquireNpadStyleSetUpdateEventHandle"}, | 338 | {107, &Hid::DisconnectNpad, "DisconnectNpad"}, |
| 338 | {107, nullptr, "DisconnectNpad"}, | ||
| 339 | {108, &Hid::GetPlayerLedPattern, "GetPlayerLedPattern"}, | 339 | {108, &Hid::GetPlayerLedPattern, "GetPlayerLedPattern"}, |
| 340 | {109, nullptr, "ActivateNpadWithRevision"}, | 340 | {109, nullptr, "ActivateNpadWithRevision"}, |
| 341 | {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"}, | 341 | {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"}, |
| 342 | {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"}, | 342 | {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"}, |
| 343 | {122, &Hid::SetNpadJoyAssignmentModeSingleByDefault, | 343 | {122, &Hid::SetNpadJoyAssignmentModeSingleByDefault, "SetNpadJoyAssignmentModeSingleByDefault"}, |
| 344 | "SetNpadJoyAssignmentModeSingleByDefault"}, | ||
| 345 | {123, nullptr, "SetNpadJoyAssignmentModeSingleByDefault"}, | 344 | {123, nullptr, "SetNpadJoyAssignmentModeSingleByDefault"}, |
| 346 | {124, &Hid::SetNpadJoyAssignmentModeDual, "SetNpadJoyAssignmentModeDual"}, | 345 | {124, &Hid::SetNpadJoyAssignmentModeDual, "SetNpadJoyAssignmentModeDual"}, |
| 347 | {125, &Hid::MergeSingleJoyAsDualJoy, "MergeSingleJoyAsDualJoy"}, | 346 | {125, &Hid::MergeSingleJoyAsDualJoy, "MergeSingleJoyAsDualJoy"}, |
| @@ -398,6 +397,8 @@ public: | |||
| 398 | {1000, nullptr, "SetNpadCommunicationMode"}, | 397 | {1000, nullptr, "SetNpadCommunicationMode"}, |
| 399 | {1001, nullptr, "GetNpadCommunicationMode"}, | 398 | {1001, nullptr, "GetNpadCommunicationMode"}, |
| 400 | }; | 399 | }; |
| 400 | // clang-format on | ||
| 401 | |||
| 401 | RegisterHandlers(functions); | 402 | RegisterHandlers(functions); |
| 402 | 403 | ||
| 403 | event = Kernel::Event::Create(Kernel::ResetType::OneShot, "hid:EventHandle"); | 404 | event = Kernel::Event::Create(Kernel::ResetType::OneShot, "hid:EventHandle"); |
| @@ -496,6 +497,12 @@ private: | |||
| 496 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 497 | LOG_WARNING(Service_HID, "(STUBBED) called"); |
| 497 | } | 498 | } |
| 498 | 499 | ||
| 500 | void DisconnectNpad(Kernel::HLERequestContext& ctx) { | ||
| 501 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 502 | rb.Push(RESULT_SUCCESS); | ||
| 503 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 504 | } | ||
| 505 | |||
| 499 | void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) { | 506 | void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) { |
| 500 | IPC::ResponseBuilder rb{ctx, 2}; | 507 | IPC::ResponseBuilder rb{ctx, 2}; |
| 501 | rb.Push(RESULT_SUCCESS); | 508 | rb.Push(RESULT_SUCCESS); |