Esempio n. 1
0
 //Cursors can be mapped to many enums, but each distinct enum can only map to one cursor.
 private static void BindCursor(Enum cursorId, ICursorSensor cursor)
 {
     if (!CursorBinds.ContainsKey(cursorId))
     {
         CursorBinds.Add(cursorId, cursor);
     }
     else
     {
         CursorBinds[cursorId] = cursor;
     }
 }