public KeyboardDeviceProvider(InputConfigManager inputConfigManager, KeyboardHook hook)
        {
            this.hook = hook;
            this.inputConfigManager = inputConfigManager;
#if !DEBUG
            hook.StartHook();
#endif
        }
Beispiel #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);
         }
     }
 }