Exemple #1
0
        public MouseDeviceProvider(InputConfigManager inputConfigManager, MouseHook hook)
        {
            this.hook = hook;
            this.inputConfigManager = inputConfigManager;
#if !DEBUG
            hook.StartHook();
#endif
        }
Exemple #2
0
 public void Start()
 {
     if (!Running)
     {
         hook.StartHook();
         readThreadContext = ThreadCreator.CreateLoop($"{DisplayName} input reader", ReadLoop, 1).Start();
         if (!InputConfiguration.Autostart)
         {
             InputConfiguration.Autostart = true;
             inputConfigManager.SaveConfig(this);
         }
     }
 }