WVR_GetInputTypeCount

WVR_EXPORT int32_t WVR_GetInputTypeCount(WVR_DeviceType type, WVR_InputType inputType)

Function to get the count for WVR_InputType. This is a calculated WVR_InputType count based on the WVR_SetInputRequest paired result.

Return
int32_t, count for each WVR_InputType. A value of -1 means an error has occurred.
Version
API Level 1
Parameters

How to use

Here is an example for the function:

#include <wvr/wvr_device.h>

WVR_DeviceType controllerArray[] = {WVR_DeviceType_Controller_Right, WVR_DeviceType_Controller_Left};
uint32_t analogCount = WVR_GetInputTypeCount(controllerArray[idx], WVR_InputType_Analog);