Function ovr_sys::ovr_Detect

source ·
pub unsafe extern "C" fn ovr_Detect(
    timeoutMilliseconds: c_int
) -> ovrDetectResult
Expand description

Detects Oculus Runtime and Device Status

Checks for Oculus Runtime and Oculus HMD device status without loading the LibOVRRT shared library. This may be called before ovr_Initialize() to help decide whether or not to initialize LibOVR.

in timeoutMilliseconds Specifies a timeout to wait for HMD to be attached or 0 to poll.

Returns an ovrDetectResult object indicating the result of detection.

see ovrDetectResult