WVR_EnhanceHandStable¶
-
WVR_EXPORT void WVR_EnhanceHandStable(bool wear = false)
Use this function to enhance Hand stability with WAVE Wrist Tracker(s).
- Version
- API Level 8
- Parameters
wear
: True if user is wearing WAVE Wrist Trackers
-
WVR_EXPORT bool WVR_IsEnhanceHandStable()
Function to examine Hand stability is guaranteed in engine level.
- Version
- API Level 8
-
union
WVR_Event
¶ - #include <wvr_events.h>
WVR_Event is an event type that is designed as a union type to provide an efficient way of using the same memory location for different event types. Developers can get the same member type to know the retrieved event belongs to which WVR_Event type, then get the specific memory region.
-
struct
WVR_HandEvent
¶ Hand Event that includes Enhanced Stable.
With WAVE Wrist Tracker, Algorithm has a guaranteed hand wrist pose to enhance hand tracking. Content Developers need to guide user to wear the tracker and use relevant APIs or event to request, withdraw, or confirm this functionality.
How to use¶
Sample function:
#include <wvr/wvr_hand.h>
// request Fusion ON, when with WAVE Wrist Tracker
WVR_EnhanceHandStable(true);
// request Fusion OFF, when without WAVE Wrist Tracker
WVR_EnhanceHandStable(false);
// inquiry Fusion on/off,
// i.e. the response of Algorithm level
bool isFusion = WVR_IsEnhanceHandStable();
// event parsing for Fusion on/off,
// i.e. the notification from Algorithm level
while(WVR_PollEventQueue(&event)) {
if (event.hand.common.type == WVR_EventType_Hand_EnhanceStable) {
bool isFusion = event.hand.isEnhancedStable;
}
}