WVR_GetHandJointCount

WVR_EXPORT WVR_Result WVR_GetHandJointCount(WVR_HandTrackerType type, uint32_t * jointCount)

Use this function to get the number of hand joints.

Version
API Level 6
Parameters
  • type: The type of hand tracker. Refer to WVR_HandTrackerType.
  • jointCount: Specify the number of the hand joints that the hand tracker provides.
Return Value
  • WVR_Success: Get information successfully.
  • Others: WVR_Result mean failure.

enum WVR_HandTrackerType

The type of hand tracker device.

Version
API Level 6

Values:

WVR_HandTrackerType_Natural = 1
WVR_HandTrackerType_Electronic = 2

How to use

Sample function:

#include <wvr/wvr_hand.h>

WVR_HandTrackerInfo_t info = {};

if (WVR_GetHandJointCount(WVR_HandTrackerType_Natural, &info.jointCount) == WVR_Success) {
   // get info.jointCount support how many jount counts
} else {
    // can not get info.jointCount
}