WVR_IsDeviceSuspend¶
- WVR_EXPORT bool WVR_IsDeviceSuspend(WVR_DeviceType type)
Developer can know if WVR_DeviceType is suspend, note only for HMD.
- Return
- true if in suspend status, otherwise return false.
- 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 Suspend or not
if(!WVR_IsDeviceSuspend(WVR_DeviceType_HMD))
LOGD(" HMD device is disconnected now !");
//check Left Controller device is Suspend or not
if(!WVR_IsDeviceSuspend(WVR_DeviceType_Controller_Left))
LOGD(" eft Controller device is disconnected now !");