Beispiel #1
0
 /// <summary>
 /// Event dispatched when the Leap Motion Controller fails to initialize
 /// </summary>
 /// <param name="sender">Controller whom executed this event</param>
 /// <param name="args">Arguments concerning the device</param>
 public void OnDeviceFailure(object sender, DeviceFailureEventArgs args)
 {
     Console.WriteLine("Device Error");
     Console.WriteLine("  PNP ID:" + args.DeviceSerialNumber);
     Console.WriteLine("  Failure message:" + args.ErrorMessage);
     if (OnShowInformations != null)
     {
         OnShowInformations(this, new LeapMotionCustomEvents.LeapMotionArgs(String.Format("Leap Motion Controller Error: \r\n" +
                                                                                          "PNP ID: {0} \r\n" +
                                                                                          "Failure message: {1}",
                                                                                          args.DeviceSerialNumber, args.ErrorMessage)));
     }
 }
Beispiel #2
0
 public void OnDeviceFailure(object sender, DeviceFailureEventArgs args)
 {
     Console.WriteLine("Device Error");
     Console.WriteLine("  PNP ID:" + args.DeviceSerialNumber);
     Console.WriteLine("  Failure message:" + args.ErrorMessage);
 }
Beispiel #3
0
 void LeapController_DeviceFailure(object sender, DeviceFailureEventArgs e)
 {
     UpdateLeapStatus("Device failure");
 }
 void OnDeviceFailur(object sender, DeviceFailureEventArgs e)
 {
     Debug.LogWarning("On Device Failur: " + e.ErrorMessage);
 }
Beispiel #5
0
 private void OnDeviceFailure(object sender, DeviceFailureEventArgs args)
 {
     Debug.Log("Leap fails to connect!");
 }
Beispiel #6
0
 public void OnDeviceFailure(object sender, DeviceFailureEventArgs args)
 {
     log.Info(string.Format("Device Error"));
     log.Info(string.Format("  PNP ID:" + args.DeviceSerialNumber));
     log.Info(string.Format("  Failure message:" + args.ErrorMessage));
 }