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(); }
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(); }
abstract public void start(GazeDispatcher gazeDispatcher);