コード例 #1
0
ファイル: GetFrame.cs プロジェクト: Krewn/LIOS
    private LeapManager manager; //This provides access to leap data

    #endregion Fields

    #region Methods

    // Use this for initialization
    void Start()
    {
        manager = Camera.main.GetComponent<LeapManager>();							//This links to some leap data
        listener   = new Leap.Listener ();											//initializes the listener
        controller = new Leap.Controller ();										//Initializes the controler
        controller.AddListener (listener);											//Pipes the listener stream into the controler
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     print("Inizializzo controller");
     listener   = new Leap.Listener();
     controller = new Leap.Controller();
     controller.AddListener(listener);
     controller.EnableGesture(Leap.Gesture.GestureType.TYPECIRCLE);
     controller.EnableGesture(Leap.Gesture.GestureType.TYPEKEYTAP);
     controller.EnableGesture(Leap.Gesture.GestureType.TYPESCREENTAP);
     controller.EnableGesture(Leap.Gesture.GestureType.TYPESWIPE);
     hasPaused = false;
 }