예제 #1
0
 public void StartTracking(short userId)
 {
     NiTE.Status status = device.NiteUserTracker.StartSkeletonTracking(userId);
     //device.TrackedUsers.Add(userId,device.CurrentUserTrackerFrameRef.getUserById(userId));
     CurrentTrackUserId = userId;
     Debug.WriteLine(status.ToString());
 }
예제 #2
0
        private static bool HandleError(NiTE.Status status)
        {
            if (status == NiTE.Status.Ok)
            {
                return(true);
            }

            MessageBox.Show(string.Format(@"Error: {0}{1}{2}", status, Environment.NewLine, OpenNI.LastError));
            return(false);
        }
예제 #3
0
        private static bool HandleError(NiTE.Status status)
        {
            if (status == NiTE.Status.Ok)
            {
                return(true);
            }

            MessageBox.Show(@"Error: " + status);
            return(false);
        }