Ejemplo n.º 1
0
        public PointerSimulated AddPointer()
        {
            var pointer = new PointerSimulated(this);

            pointers.Add(pointer);
            RegisterDevice(pointer);
            return(pointer);
        }
Ejemplo n.º 2
0
 public void RemovePointer(PointerSimulated pointer)
 {
     if (!pointers.Contains(pointer))
     {
         throw new InvalidOperationException("Simulated PointerDevice does not exist");
     }
     UnregisterDevice(pointer);
     pointers.Remove(pointer);
 }