Esempio n. 1
0
        public DebugWindow()
        {
            InitializeComponent();

            _spotify = new Core.Spotify.Client();
            _spotify.Initalize();

            _leap = new Core.LeapMotion.Leap();
            _leap.Gesture.OnLeapConnection += Gesture_OnLeapConnection;

            _leap.Gesture.OnSwipeLeft              += Gesture_OnSwipeLeft;
            _leap.Gesture.OnSwipeRight             += Gesture_OnSwipeRight;
            _leap.Gesture.OnScreenTap              += Gesture_OnScreenTap;
            _leap.Gesture.OnSwipeUp                += Gesture_OnSwipeUp;
            _leap.Gesture.OnSwipeDown              += Gesture_OnSwipeDown;
            _leap.Gesture.OnCircleClockwise        += Gesture_OnCircleClockwise;
            _leap.Gesture.OnCircleCounterclockwise += Gesture_OnCircleCounterclockwise;

            spotifyCheck.Start();
            leapMotionCheck.Start();

            LoadSettingsIntoLeap();

            #if DEBUG
            _leap.Gesture.OnMessage += Gesture_OnMessage;
            #endif
        }
Esempio n. 2
0
        public void Start()
        {
            this.DisplayTrayIcon();

            _spotify = new Core.Spotify.Client();
            _spotify.Initalize();

            _leap = new Core.LeapMotion.Leap();
            _leap.Gesture.OnLeapConnection    += Gesture_OnLeapConnection;
            _leap.Gesture.OnLeapDisconnection += Gesture_OnLeapDisconnection;

            _leap.Gesture.OnSwipeLeft              += Gesture_OnSwipeLeft;
            _leap.Gesture.OnSwipeRight             += Gesture_OnSwipeRight;
            _leap.Gesture.OnScreenTap              += Gesture_OnScreenTap;
            _leap.Gesture.OnSwipeUp                += Gesture_OnSwipeUp;
            _leap.Gesture.OnSwipeDown              += Gesture_OnSwipeDown;
            _leap.Gesture.OnCircleClockwise        += Gesture_OnCircleClockwise;
            _leap.Gesture.OnCircleCounterclockwise += Gesture_OnCircleCounterclockwise;

            #if DEBUG
            this.BindDebugWindow();
            #endif
        }