WVR_GetHandGestureInfo

Note: Right hand WVR_HandGestureType_Palm_Pinch is for System using. Developer can not get right hand WVR_HandGestureType_Palm_Pinch. Developer can get left hand WVR_HandGestureType_Palm_Pinch.

WVR_EXPORT WVR_Result WVR_GetHandGestureInfo(WVR_HandGestureInfo_t * info)

Use this function to get hand gesture configuration.

Use this API to get hand gesture configuration. This API must be called by main thread.

Version
API Level 6
Parameters
Return Value
  • WVR_Success: Get information successfully.
  • Others: WVR_Result mean failure.

struct WVR_HandGestureInfo

The gesture information.

Public Members

uint64_t supportedMask

How to use

Sample function:

#include <wvr/wvr_hand.h>

if (WVR_StartHandGesture(0x83) == WVR_Success) {
    WVR_HandGestureInfo data;
    if (WVR_GetHandGestureInfo(&data) == WVR_Success) {
        // check data.supportedMask support which WVR_HandGestureType
    } else {
        // get gesture inform failed!
    }
    WVR_StopHandGesture();
} else {
    // start hand gesture failed!
}