camera: Make CAMMode::forceDrc var an enum, and some extra comments

Done because only 0 and 1 are valid values
This commit is contained in:
capitalistspz
2026-03-03 16:24:16 +00:00
parent 6cd63fe2b3
commit ecddcb2023

View File

@@ -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;
};