Esempio n. 1
0
        public WatcherService(ref IStorage store, ref ISaveService saveService)
        {
            this.store       = store ?? throw new ArgumentNullException(nameof(store));
            this.saveService = saveService ?? throw new ArgumentNullException(nameof(saveService));

            store.TimerElasped += Store_TimerElasped;

            keyboard = new KeyboardHook(KeyboardHook.Parameters.PassAllKeysToNextApp);
            keyboard.KeyIntercepted += Keyboard_KeyIntercepted;

            mouse             = new MouseDetector(store.GetResolution(), saveService.GetDataPrecision());
            mouse.MouseMoved += Mouse_MouseMoved;
        }
Esempio n. 2
0
 public DataPrecision GetDataPrecision()
 {
     return(saveService.GetDataPrecision());
 }