WVR_GetBatteryTemperature

WVR_EXPORT float WVR_GetBatteryTemperature(WVR_DeviceType type)

Get the current temperature of battery.

Return
The temperature of the battery. A value of -1 means it is not supported or failed to get the battery temperature.
Version
API Level 1
Parameters
  • type: Device type to get the InputDeviceState. (refer to WVR_DeviceType)

How to use

Here is an example for the function:

#include <wvr/wvr_device.h>
// Get HMD battery temperature

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