mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using RGB.NET.Core;
|
|
using RGB.NET.Devices.Wooting.Native;
|
|
|
|
namespace RGB.NET.Devices.Wooting.Generic;
|
|
|
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
|
/// <inheritdoc cref="IWootingRGBDevice" />
|
|
/// <summary>
|
|
/// Represents a Wooting-device
|
|
/// </summary>
|
|
public abstract class WootingRGBDevice<TDeviceInfo> : AbstractRGBDevice<TDeviceInfo>, IWootingRGBDevice
|
|
where TDeviceInfo : WootingRGBDeviceInfo
|
|
{
|
|
#region Constructors
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="WootingRGBDevice{TDeviceInfo}"/> class.
|
|
/// </summary>
|
|
/// <param name="info">The generic information provided by Wooting for the device.</param>
|
|
/// <param name="updateQueue">The update queue used to update this device.</param>
|
|
protected WootingRGBDevice(TDeviceInfo info, IUpdateQueue updateQueue)
|
|
: base(info, updateQueue)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#region Methods
|
|
|
|
public override void Dispose()
|
|
{
|
|
_WootingSDK.SelectDevice(DeviceInfo.WootingDeviceIndex);
|
|
_WootingSDK.Reset();
|
|
|
|
base.Dispose();
|
|
}
|
|
|
|
#endregion
|
|
} |