stubbed.h 907 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. #include "core/hle/service/hid/controllers/controller_base.h"
  7. namespace Service::HID {
  8. class Controller_Stubbed final : public ControllerBase {
  9. public:
  10. Controller_Stubbed();
  11. ~Controller_Stubbed() override;
  12. // Called when the controller is initialized
  13. void OnInit() override;
  14. // When the controller is released
  15. void OnRelease() override;
  16. // When the controller is requesting an update for the shared memory
  17. void OnUpdate(u8* data, std::size_t size) override;
  18. // Called when input devices should be loaded
  19. void OnLoadInputDevices() override;
  20. void SetCommonHeaderOffset(std::size_t off);
  21. private:
  22. bool smart_update{};
  23. std::size_t common_offset{};
  24. };
  25. } // namespace Service::HID