stubbed.h 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/common_types.h"
  5. #include "hid_core/hidbus/hidbus_base.h"
  6. namespace Core::HID {
  7. class EmulatedController;
  8. } // namespace Core::HID
  9. namespace Service::HID {
  10. class HidbusStubbed final : public HidbusBase {
  11. public:
  12. explicit HidbusStubbed(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
  13. ~HidbusStubbed() override;
  14. void OnInit() override;
  15. void OnRelease() override;
  16. // Updates ringcon transfer memory
  17. void OnUpdate() override;
  18. // Returns the device ID of the joycon
  19. u8 GetDeviceId() const override;
  20. // Assigns a command from data
  21. bool SetCommand(std::span<const u8> data) override;
  22. // Returns a reply from a command
  23. std::vector<u8> GetReply() const override;
  24. };
  25. } // namespace Service::HID