public HandSide GetHandSide(IntPtr handGestureHandle) { ApiHandSide apiHandSide = ApiHandSide.ARHAND_SIDE_HAND_UNKNOWN; ExternApi.arHandGestureGetHandSide(m_NativeSession.SessionHandle, handGestureHandle, ref apiHandSide); return(apiHandSide.ToHandSide()); }
public static HandSide ToHandSide(this ApiHandSide apiHandSide) { switch (apiHandSide) { case ApiHandSide.ARHAND_SIDE_HAND_UNKNOWN: return(HandSide.ARHAND_SIDE_HAND_UNKNOWN); case ApiHandSide.ARHAND_SIDE_LEFT_HAND: return(HandSide.ARHAND_SIDE_LEFT_HAND); case ApiHandSide.ARHAND_SIDE_RIGHT_HAND: return(HandSide.ARHAND_SIDE_RIGHT_HAND); default: return(HandSide.ARHAND_SIDE_HAND_UNKNOWN); } }
public static extern void arHandGestureGetHandSide(IntPtr sessionHandle, IntPtr handGestureHandle, ref ApiHandSide outHandSide);