private void ThisAddIn_Startup(object sender, System.EventArgs e) { _gestureMap = new LeapMotionGestureMap.GestureMap(); Application.SlideShowBegin += new PowerPoint.EApplication_SlideShowBeginEventHandler(SlideShowStart); Application.SlideShowEnd += new PowerPoint.EApplication_SlideShowEndEventHandler(SlideShowEnd); _mouseThread = new Thread(HandleMouse); }
static void Main(string[] args) { _gestureMap = new LeapMotionGestureMap.GestureMap(); while (Properties.Settings1.Default.Running) { if (Properties.Settings1.Default.Active) { _gestureMap.CircleDetected += HandleCircle; } while (Properties.Settings1.Default.Active) { System.Threading.Thread.Sleep(500);//idle } _gestureMap.CircleDetected += HandleCircle; } }