/// <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]; }
/// <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]; }