diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-19 06:32:07 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-07-24 02:38:42 +0200 |
commit | f19e7be6e84357234c9fdae3395f988a9bb1ac5b (patch) | |
tree | cc93872ac739fd7b967f8f62ea6abf2c8639221d /src/input_common/drivers/camera.h | |
parent | Merge pull request #8545 from Kelebek1/Audio (diff) | |
download | yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar.gz yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar.bz2 yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar.lz yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar.xz yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.tar.zst yuzu-f19e7be6e84357234c9fdae3395f988a9bb1ac5b.zip |
Diffstat (limited to 'src/input_common/drivers/camera.h')
-rw-r--r-- | src/input_common/drivers/camera.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/input_common/drivers/camera.h b/src/input_common/drivers/camera.h new file mode 100644 index 000000000..b8a7c75e5 --- /dev/null +++ b/src/input_common/drivers/camera.h @@ -0,0 +1,29 @@ +// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "input_common/input_engine.h" + +namespace InputCommon { + +/** + * A button device factory representing a keyboard. It receives keyboard events and forward them + * to all button devices it created. + */ +class Camera final : public InputEngine { +public: + explicit Camera(std::string input_engine_); + + void SetCameraData(std::size_t width, std::size_t height, std::vector<u32> data); + + std::size_t getImageWidth() const; + std::size_t getImageHeight() const; + + Common::Input::CameraError SetCameraFormat(const PadIdentifier& identifier_, + Common::Input::CameraFormat camera_format) override; + + Common::Input::CameraStatus status{}; +}; + +} // namespace InputCommon |