Esempio n. 1
0
    // Polls for new skeleton data
    public static bool PollSkeleton(ref BodyFrame bodyFrame, Int64 lastFrameTime)
    {
        bool newSkeleton = false;

        int hr = KinectWrapper.GetBodyFrameData(ref bodyFrame, true, true);

        if (hr == 0 && (bodyFrame.liRelativeTime > lastFrameTime))
        {
            newSkeleton = true;
        }

        return(newSkeleton);
    }