Exemple #1
0
 public InputDeviceManager(InputConfigManager inputConfigManager, List <IInputDeviceProvider> inputDeviceProviders)
 {
     this.inputConfigManager   = inputConfigManager;
     this.inputDeviceProviders = inputDeviceProviders;
     foreach (var inputDeviceProvider in inputDeviceProviders)
     {
         inputDeviceProvider.Connected    += Connected;
         inputDeviceProvider.Disconnected += Disconnected;
     }
     readThreadContext = ThreadCreator.CreateLoop($"Input device manager refresh", RefreshLoop, 5000).Start();
 }
 public InputDeviceManager(InputConfigManager inputConfigManager, List <IInputDeviceProvider> inputDeviceProviders)
 {
     this.inputConfigManager   = inputConfigManager;
     this.inputDeviceProviders = inputDeviceProviders;
     readThreadContext         = ThreadCreator.CreateLoop($"Input device manager refresh", RefreshLoop, 5000).Start();
 }