mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
Dispose of each keyboard properly
This commit is contained in:
1 parent
819e6ef1df
commit
f3d63f09a9
5 files changed
+15
-5
No files matched your search
@@ -37,6 +37,8 @@ public class WootingRGBDeviceInfo : IRGBDeviceInfo
|
||||
/// </summary>
|
||||
public WootingLayoutType WootingLayoutType { get; }
|
||||
|
||||
public byte WootingDeviceIndex { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
@@ -46,11 +48,12 @@ public class WootingRGBDeviceInfo : IRGBDeviceInfo
|
||||
/// </summary>
|
||||
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
|
||||
/// <param name="deviceInfo">The <see cref="_WootingDeviceInfo"/> of the <see cref="IRGBDevice"/>.</param>
|
||||
internal WootingRGBDeviceInfo(RGBDeviceType deviceType, _WootingDeviceInfo deviceInfo)
|
||||
internal WootingRGBDeviceInfo(RGBDeviceType deviceType, _WootingDeviceInfo deviceInfo, byte deviceIndex)
|
||||
{
|
||||
this.DeviceType = deviceType;
|
||||
this.WootingDeviceType = deviceInfo.DeviceType;
|
||||
this.WootingLayoutType = deviceInfo.LayoutType;
|
||||
this.WootingDeviceIndex = deviceIndex;
|
||||
|
||||
Model = deviceInfo.Model;
|
||||
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
|
||||
|
||||
Reference in new issue
Block a user