예제 #1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            listener   = new LeapListener();
            controller = new Leap.Controller();
            controller.AddListener(listener);

            listener.OnFrameUpdate        += listener_OnFrameUpdate;
            listener.OnDeviceStatusUpdate += listener_OnDeviceStatusUpdate;

            listener.OnCircleGesture    += listener_OnCircleGesture;
            listener.OnKeyTapGesture    += listener_OnKeyTapGesture;
            listener.OnScreenTapGesture += listener_OnScreenTapGesture;
            listener.OnSwipeGesture     += listener_OnSwipeGesture;
        }
예제 #2
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            listener = new LeapListener();
            controller = new Leap.Controller();
            controller.AddListener(listener);

            listener.OnFrameUpdate += listener_OnFrameUpdate;
            listener.OnDeviceStatusUpdate +=listener_OnDeviceStatusUpdate;

            listener.OnCircleGesture += listener_OnCircleGesture;
            listener.OnKeyTapGesture += listener_OnKeyTapGesture;
            listener.OnScreenTapGesture += listener_OnScreenTapGesture;
            listener.OnSwipeGesture += listener_OnSwipeGesture;
        }