WVR_GetBatteryTemperature

WVR_EXPORT float WVR_GetBatteryTemperature(WVR_DeviceType type)

Get the current temperature of battery.

Return
The temperature of battery. -1 means not support or failure.
Parameters
  • type -

    Type of the device to get the InputDeviceState. (refer to WVR_DeviceType)

How to use

Here is an example for the function:

#include <wvr/wvr_status.h>
// To get HMD device Battery Temperature

float Temperature = 0.0;
Temperature = WVR_GetBatteryTemperature(WVR_DeviceType_HMD);