Exemplo n.º 1
0
 public override void start(GazeDispatcher gazeDispatcher)
 {
     log.debug("BaseTimerRunner started");
     this.windowGazeTimestamps  = new Dictionary <IntPtr, long>();
     this.recentlyActiveWindows = new FixedSizeQueue <IntPtr>(Config.Instance.howManyHighlightedConcurrentWindows);
     this.gazeDispatcher        = gazeDispatcher;
     this.gazeDispatcher.addEventHandler(onGazeEvent);
     initTimer();
 }
Exemplo n.º 2
0
 public static void execute()
 {
     handleConsole();
     log.info("=== EYEFLOW STARTED - WELCOME! ===");
     log.info("CONFIG: " + Config.Instance.ToString());
     //GazeDispatcher gazeDispatcher = new SimulatingGazeDispatcher();
     dispatcher = new RealGazeDispatcher();
     runner     = new AnimatingTimerRunner();
     runner.start(dispatcher);
     dispatcher.start();
     Console.ReadKey();
     log.info("=== SHUTDOWN BY KEYPRESS ===");
     exit();
 }
Exemplo n.º 3
0
 abstract public void start(GazeDispatcher gazeDispatcher);