WVR_GetInputTypeCount

WVR_EXPORT int32_t WVR_GetInputTypeCount(WVR_DeviceType type, WVR_InputType inputType)

Function to get InputConfig for WVR_InputType.

Return
int32_t, count for each WVR_InputType, -1 for error occurs
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);