fsCameraGetStatus

The fsCameraGetStatus function is used to get the add-on camera status.

 

Syntax
bool fsCameraGetStatus(
    FsAcquiredState* outAcquiredState,
    bool* outGameControlled
    );

 

Members
Parameters Description
outAcquiredState Contains one of the members of the FsAcquiredState enum to indicate what status the add-on camera has.
outGameControlled Will be true if the camera is currently controlled by the simulation, or false otherwise (regardless of the camera status).

 

Return Values

The function returns false if it was not possible to send the request, or true otherwise. If the request was sent but failed, the specified callback will be invoked with an appropriate error code.

 

Example

Get camera status:

FsAcquiredState acquiredState = FS_ACQUIRED_STATE_NOT_ACQUIRED;
bool gameControlled = 0;
fsCameraGetStatus(&acquiredState, &gameControlled);

 

Remarks

Note that the parameters used by this function cannot be NULL.

 

Related Topics

  1. WebAssembly
  2. Camera API

0/255