summaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-06-18 23:34:28 -0500
committergerman77 <juangerman-13@hotmail.com>2022-07-23 19:40:21 -0500
commitcc83e0a6006667d126a7a83dde23a7f8ae3af994 (patch)
treec4adfe7019e6f54050f8341e929c3db417d491f6 /src/yuzu/bootmanager.h
parentf19e7be6e84357234c9fdae3395f988a9bb1ac5b (diff)
yuzu: Hook qt camera to camera driver
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r--src/yuzu/bootmanager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 81fe52c0e..346201768 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -20,6 +20,8 @@
class GRenderWindow;
class GMainWindow;
+class QCamera;
+class QCameraImageCapture;
class QKeyEvent;
namespace Core {
@@ -164,6 +166,9 @@ public:
void mouseReleaseEvent(QMouseEvent* event) override;
void wheelEvent(QWheelEvent* event) override;
+ void InitializeCamera();
+ void FinalizeCamera();
+
bool event(QEvent* event) override;
void focusOutEvent(QFocusEvent* event) override;
@@ -207,6 +212,9 @@ private:
void TouchUpdateEvent(const QTouchEvent* event);
void TouchEndEvent();
+ void RequestCameraCapture();
+ void OnCameraCapture(int requestId, const QImage& img);
+
void OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal_size) override;
bool InitializeOpenGL();
@@ -232,6 +240,10 @@ private:
bool first_frame = false;
InputCommon::TasInput::TasState last_tas_state;
+ std::unique_ptr<QCamera> camera;
+ std::unique_ptr<QCameraImageCapture> camera_capture;
+ std::unique_ptr<QTimer> camera_timer;
+
Core::System& system;
protected: