Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Controller"/> class.
 /// </summary>
 /// <param name="devicePath">The path of the device.</param>
 public Controller(string devicePath)
 {
     stream        = new HidStream(devicePath);
     featureBuffer = new byte[this.FeatureLength];
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Controller"/> class.
 /// </summary>
 /// <param name="devicePath">The path of the device.</param>
 /// <param name="logger">Microsoft.Extensions.Logging implementation.  Use null to disable any loggin.</param>
 /// Microsoft.Extensions.Logging
 public Controller(string devicePath, ILogger logger)
 {
     this.logger   = logger;
     stream        = new HidStream(devicePath);
     featureBuffer = new byte[this.FeatureLength];
 }