public IInputDevice[] FindDevices()
        {
            try
            {
                if (device == null)
                    device = new RemoteInputDevice("COM6");
                else if (!device.IsConnected)
                    device.Reconnect();

                return new IInputDevice[]
                {
                    device
                };
            }
            catch(Exception)
            {
                return new IInputDevice[0];
            }
        }
예제 #2
0
 public bool Equals(RemoteInputDevice other)
 {
     return(object.ReferenceEquals(this, other));
 }