The SimConnect_CameraSetUsingCameraDefinition function is used to set specific parts of the camera struct based on a predefined camera definition from the cameras.cfg file. This function can only be used when the add-on camera has been acquired.

Syntax
HRESULT SimConnect_CameraSetUsingCameraDefinition(
    HANDLE hSimConnect,
    HANDLE hSimConnect, const char* cameraDefinitionName
    );
Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
cameraDefinitionNameThis is the Title string of a camera definition to use.String
Return Values

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return valueDescription
S_OKThe function succeeded.
E_FAILThe function failed.
Example

N/A

Remarks

The data that will be used from the given camera definition is as follows:

  • Position - From the InitialXyz parameter
  • Pbh - From the InitialPbh parameter
  • FOV - From the Initialzoom parameter

0/255