mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-28 05:45:03 -05:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user