Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     leap       = new LeapMotion();
     controller = new Controller();
     drwH       = new Thread(drwHand);
 }
Esempio n. 2
0
        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();
        }