예제 #1
0
        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)
            { }
        }
예제 #2
0
        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 = "연결 안 됨";
            }));
        }
예제 #3
0
        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 = "연결됨";
            }));
        }
예제 #4
0
        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)
            { }
        }
예제 #5
0
 void OnControllerDisconnected(object sender, Leap.DeviceEventArgs e)
 {
     m_core.GetVRManager().ShowNotification("Controller disconnected");
 }