예제 #1
0
 public void UnregisterCursor(IKinectCursor cursor)
 {
     lock (cursorDictionarySync)
     {
         if (cursorDictionary.ContainsKey(cursor.GetHashCode()))
         {
             cursorDictionary.Remove(cursor.GetHashCode());
         }
     }
 }
예제 #2
0
 public void RegisterCursor(IKinectCursor cursor)
 {
     lock (cursorDictionarySync)
     {
         cursorDictionary[cursor.GetHashCode()] = cursor;
     }
 }