示例#1
0
        public PointerSimulated AddPointer()
        {
            var pointer = new PointerSimulated(this);

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