WVR_GetInputDeviceAnalogType

WVR_EXPORT WVR_AnalogType WVR_GetInputDeviceAnalogType(WVR_DeviceType type, WVR_InputId id)

Function to get input device analog Type for WVR_InputId.

Return
Analog type for WVR_InputId. (refer to WVR_AnalogType)
Version
API Level 3
Note
Effective with Runtime version 3 or higher
Parameters

How to use

Here is an example for the function:

#include <wvr/wvr_device.h>

std::cout << "WVR_InputId_Alias1_Menu analog type is " << WVR_GetInputDeviceAnalogType(WVR_DeviceType_Controller_Right, WVR_InputId_Alias1_Menu) << "." << std::endl;
std::cout << "WVR_InputId_Alias1_Touchpad analog type is " << WVR_GetInputDeviceAnalogType(WVR_DeviceType_Controller_Right, WVR_InputId_Alias1_Touchpad) << "." << std::endl;
std::cout << "WVR_InputId_Alias1_Trigger analog type is " << WVR_GetInputDeviceAnalogType(WVR_DeviceType_Controller_Right, WVR_InputId_Alias1_Trigger) << "." << std::endl;
std::cout << "WVR_InputId_Alias1_Thumbstick analog type is " << WVR_GetInputDeviceAnalogType(WVR_DeviceType_Controller_Right, WVR_InputId_Alias1_Thumbstick) << "." << std::endl;