WVR_IsDeviceConnected¶
-
WVR_EXPORT bool WVR_IsDeviceConnected(WVR_DeviceType type)
Lets the developer know if WVR_DeviceType is connected.
- Return
- True means connected; false means disconnected.
- Version
- API Level 1
- Parameters
type
: Indicates what device type. (refer to WVR_DeviceType)
How to use¶
Here is an example for the function:
#include <wvr/wvr_device.h>
//check if HMD is connected or not
if(!WVR_IsDeviceConnected(WVR_DeviceType_HMD))
LOGD("The HMD is currently disconnected.");
//check if left Controller is connected or not
if(!WVR_IsDeviceConnected(WVR_DeviceType_Controller_Left))
LOGD("The left controller is currently disconnected.");