camera.h 873 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <span>
  5. #include "input_common/input_engine.h"
  6. namespace InputCommon {
  7. /**
  8. * A button device factory representing a keyboard. It receives keyboard events and forward them
  9. * to all button devices it created.
  10. */
  11. class Camera final : public InputEngine {
  12. public:
  13. explicit Camera(std::string input_engine_);
  14. void SetCameraData(std::size_t width, std::size_t height, std::span<const u32> data);
  15. std::size_t getImageWidth() const;
  16. std::size_t getImageHeight() const;
  17. Common::Input::CameraError SetCameraFormat(const PadIdentifier& identifier_,
  18. Common::Input::CameraFormat camera_format) override;
  19. Common::Input::CameraStatus status{};
  20. };
  21. } // namespace InputCommon