stubbed.cpp 942 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/core_timing.h"
  4. #include "core/hle/service/hid/controllers/shared_memory_format.h"
  5. #include "core/hle/service/hid/controllers/stubbed.h"
  6. namespace Service::HID {
  7. Controller_Stubbed::Controller_Stubbed(Core::HID::HIDCore& hid_core_,
  8. CommonHeader& ring_lifo_header)
  9. : ControllerBase{hid_core_}, header{ring_lifo_header} {}
  10. Controller_Stubbed::~Controller_Stubbed() = default;
  11. void Controller_Stubbed::OnInit() {}
  12. void Controller_Stubbed::OnRelease() {}
  13. void Controller_Stubbed::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
  14. if (!smart_update) {
  15. return;
  16. }
  17. header.timestamp = core_timing.GetGlobalTimeNs().count();
  18. header.total_entry_count = 17;
  19. header.entry_count = 0;
  20. header.last_entry_index = 0;
  21. }
  22. } // namespace Service::HID