private void InvokeInputDeviceLostEvent(String deviceId, String deviceName)
 {
     if (InputDeviceLost != null)
     {
         InputDeviceLostEventArgs eventArgs = new InputDeviceLostEventArgs(deviceId, deviceName);
         InputDeviceLost.Invoke(this, eventArgs);
     }
 }
 private void inputManager_InputDeviceLost(object sender, InputDeviceLostEventArgs e)
 {
     Console.WriteLine("Device lost: " + e.DeviceId);
     this.BeginInvoke(new InputDeviceLostHandler(inputManagerSync_InputDeviceLost), this, e);
 }
 private void inputManagerSync_InputDeviceLost(object sender, InputDeviceLostEventArgs e)
 {
     HandleLostDevice(e.DeviceId);
 }
 private void InvokeInputDeviceLostEvent(String deviceId)
 {
     if (InputDeviceLost != null)
     {
         InputDeviceLostEventArgs eventArgs = new InputDeviceLostEventArgs(deviceId);
         InputDeviceLost.Invoke(this, eventArgs);
     }
 }