From ecddcb20239b4c87cf26356c7a08e4828cbfa39c Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Tue, 3 Mar 2026 16:24:16 +0000 Subject: [PATCH] camera: Make `CAMMode::forceDrc` var an enum, and some extra comments Done because only 0 and 1 are valid values --- include/camera/camera.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/camera/camera.h b/include/camera/camera.h index a7c35142..0f6edc6f 100644 --- a/include/camera/camera.h +++ b/include/camera/camera.h @@ -54,17 +54,27 @@ typedef enum CamFps CAMERA_FPS_30 = 1 } CamFps; +//! Stream type. There is only one valid stream type typedef enum CamStreamType { CAMERA_STREAM_TYPE_1 = 0 } CamStreamType; +//! Type of event received by the event handler typedef enum CamEventType { + //! Frame was captured, decoded and copied to a submitted surface CAMERA_DECODE_DONE = 0, + //! Wii U Gamepad disconnected CAMERA_DRC_DETACH = 1 } CamEventType; +typedef enum CamForceDRC +{ + CAMERA_FORCE_DRC_OFF = 0, + CAMERA_FORCE_DRC_ON = 1 +}; + struct CAMEventData { //! Event type @@ -104,8 +114,8 @@ typedef void (*CAMEventHandler)(CAMEventData *camEventData); struct CAMMode { - //! If TRUE, the GamePad will display the camera output regardless of what is being rendered - BOOL forceDrc; + //! Controls whether GamePad will display the camera output (regardless of rendered content) + CamForceDRC forceDrc; //! Framerate setting CamFps fps; };