public void Close()
 {
     if (_input != null)
     {
         _input.Close();
     }
 }
Example #2
0
 public void CloseDevice()
 {
     if (InputDevice != null)
     {
         InputDevice.Stop();
         InputDevice.Close();
         InputDevice = null;
     }
     if (OutputDevice != null)
     {
         OutputDevice.Close();
         OutputDevice = null;
     }
     Connected = false;
 }
Example #3
0
 public void Stop()
 {
     loop = false;
     wait_handle.WaitOne();
     input_device.Close();
 }