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