public PointerSimulated AddPointer() { var pointer = new PointerSimulated(this); pointers.Add(pointer); RegisterDevice(pointer); return(pointer); }
public void RemovePointer(PointerSimulated pointer) { if (!pointers.Contains(pointer)) { throw new InvalidOperationException("Simulated PointerDevice does not exist"); } UnregisterDevice(pointer); pointers.Remove(pointer); }