public void UnregisterCursor(IKinectCursor cursor) { lock (cursorDictionarySync) { if (cursorDictionary.ContainsKey(cursor.GetHashCode())) { cursorDictionary.Remove(cursor.GetHashCode()); } } }
public void RegisterCursor(IKinectCursor cursor) { lock (cursorDictionarySync) { cursorDictionary[cursor.GetHashCode()] = cursor; } }