public InteractionManager(KinectSensor sensor, RemoScheduler _remoScheduler) { leftHandLocation = new Point(); rightHandLocation = new Point(); remoScheduler = _remoScheduler; interactionController = new InteractionController(); interactionController.setSensor(sensor); }
public MainWindow() { InitializeComponent(); InitializeTrayIcon(); remoScheduler = new RemoScheduler(); // add timer for clearing last detected gesture _clearTimer = new System.Timers.Timer(1000); _clearTimer.Elapsed += new ElapsedEventHandler(clearTimer_Elapsed); Loaded += OnLoaded; }
public GestureManager(KinectSensor sensor, InteractionManager _interactionManager, RemoScheduler _remoScheduler) { _sensor = sensor; interactionManager = _interactionManager; remoScheduler = _remoScheduler; // initialize the gesture recognizer gestureController = new GestureController(); RegisterGestures(); isPaused = true; gestureController.GestureRecognized += OnGestureRecognized; sensor.SkeletonFrameReady += OnSkeletonFrameReady; }