WVR_IsDeviceConnected¶
- WVR_EXPORT bool WVR_IsDeviceConnected(WVR_DeviceType type)
 Developer can know if WVR_DeviceType is connected.
- Return
 - false if is disconnected, true is connected.
 - Parameters
 - type - 
which indicate WVR_DeviceType.
 
- type - 
 
How to use¶
Here is an example for the function:
#include <wvr/wvr_device.h>
//check HMD device is connected or not
if(!WVR_IsDeviceConnected(WVR_DeviceType_HMD))
    LOGD(" HMD device is disconnected now !");
//check Left Controller device is connected or not
if(!WVR_IsDeviceConnected(WVR_DeviceType_Controller_Left))
    LOGD(" Left Controller device is disconnected now !");