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()); }
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); }
private static bool HandleError(NiTE.Status status) { if (status == NiTE.Status.Ok) { return(true); } MessageBox.Show(@"Error: " + status); return(false); }