diff --git a/include/camera/camera.h b/include/camera/camera.h index a7c351421..b675f999f 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 +} CamForceDRC; + 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; };