33 lines
884 B
C++
Raw Normal View History

2022-06-18 23:32:07 -05:00
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <span>
2022-06-18 23:32:07 -05:00
#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::span<const u32> data);
2022-06-18 23:32:07 -05:00
std::size_t getImageWidth() const;
std::size_t getImageHeight() const;
Common::Input::DriverResult SetCameraFormat(const PadIdentifier& identifier_,
Common::Input::CameraFormat camera_format) override;
2022-06-18 23:32:07 -05:00
2022-12-18 00:10:20 -06:00
private:
2022-06-18 23:32:07 -05:00
Common::Input::CameraStatus status{};
};
} // namespace InputCommon