예제 #1
0
 public Form1()
 {
     InitializeComponent();
     leap       = new LeapMotion();
     controller = new Controller();
     drwH       = new Thread(drwHand);
 }
예제 #2
0
파일: Sample.cs 프로젝트: alex231330/leapV4
        public static void main()
        {
            // Create a sample listener and controller
            LeapMotion listener   = new LeapMotion();
            Controller controller = new Controller();

            // Have the sample listener receive events from the controller
            controller.AddListener(listener);

            // Keep this process running until Enter is pressed
            Console.WriteLine("Press Enter to quit...");
            Console.ReadLine();

            // Remove the sample listener when done
            controller.RemoveListener(listener);
            controller.Dispose();
        }