public void LeapController_Device(object sender, Leap.DeviceEventArgs e) { try { if (this.Root == null) { return; } if (this.Root.LeapController.Enabled == false) { return; } this.connectLeapmotionProgressbar.Invoke(new MethodInvoker(delegate() { this.connectLeapmotionProgressbar.animated = true; this.connectLeapmotionProgressbar.Value = 15; })); this.leapmotionConnectionLabel.Invoke(new MethodInvoker(delegate() { this.leapmotionConnectionLabel.Text = "립모션과 연결되어 있습니다."; })); } catch (Exception) { } }
public void LeapController_DeviceLost(object sender, Leap.DeviceEventArgs e) { if (this.Root == null) { return; } this.SetProgressbarState(this.leapmotionProgressbar, true); this.leapmotionProgressbar.Invoke(new MethodInvoker(delegate() { this.leapmotionProgressbar.Invoke(new MethodInvoker(delegate() { this.leapmotionProgressbar.Value = 0; this.leapmotionProgressbar.ProgressBackColor = Color.FromArgb(255, 200, 150); })); })); this.leapmotionStatePanel.Invoke(new MethodInvoker(delegate() { this.leapmotionStatePanel.Visible = false; })); this.leapmotionConnectionLabel.Invoke(new MethodInvoker(delegate() { this.leapmotionConnectionLabel.Text = "연결 안 됨"; })); }
public void LeapController_Device(object sender, Leap.DeviceEventArgs e) { if (this.Root == null) { return; } if (this.Root.LeapController.Enabled == false) { return; } this.SetProgressbarState(this.leapmotionProgressbar, true); this.leapmotionProgressbar.Invoke(new MethodInvoker(delegate() { this.leapmotionProgressbar.Value = 15; this.leapmotionProgressbar.ProgressBackColor = Color.Gainsboro; })); this.leapmotionStatePanel.Invoke(new MethodInvoker(delegate() { this.leapmotionStatePanel.Visible = true; })); this.leapmotionConnectionLabel.Invoke(new MethodInvoker(delegate() { this.leapmotionConnectionLabel.Text = "연결됨"; })); }
public void LeapController_Disconnect(object sender, Leap.DeviceEventArgs e) { try { this.connectLeapmotionProgressbar.Invoke(new MethodInvoker(delegate() { this.connectLeapmotionProgressbar.animated = false; this.connectLeapmotionProgressbar.Value = 0; })); this.leapmotionConnectionLabel.Invoke(new MethodInvoker(delegate() { this.leapmotionConnectionLabel.Text = "립모션과 연결되어 있지 않습니다."; })); } catch (Exception) { } }
void OnControllerDisconnected(object sender, Leap.DeviceEventArgs e) { m_core.GetVRManager().ShowNotification("Controller disconnected"); }