mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Swap the positions and make zoneOffset optional
This commit is contained in:
1 parent
4bfd890a53
commit
0edf2fc7d6
2 files changed
+29
-29
No files matched your search
@@ -30,16 +30,16 @@ namespace RGB.NET.Devices.Logitech
|
||||
/// </summary>
|
||||
public LogitechDeviceCaps DeviceCaps { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the zone at which LEDs start being mapped
|
||||
/// </summary>
|
||||
public int ZoneOffset { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the amount of zones the <see cref="LogitechRGBDevice{TDeviceInfo}"/> is able to control (0 for single-color and per-key devices)
|
||||
/// </summary>
|
||||
public int Zones { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the zone at which LEDs start being mapped
|
||||
/// </summary>
|
||||
public int ZoneOffset { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
@@ -50,15 +50,15 @@ namespace RGB.NET.Devices.Logitech
|
||||
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
|
||||
/// <param name="model">The represented device model.</param>
|
||||
/// <param name="deviceCaps">The lighting-capabilities of the device.</param>
|
||||
/// <param name="zoneOffset">The zone at which to start mapping LEDs.</param>
|
||||
/// <param name="zones">The amount of zones the device is able to control.</param>
|
||||
internal LogitechRGBDeviceInfo(RGBDeviceType deviceType, string model, LogitechDeviceCaps deviceCaps, int zoneOffset, int zones)
|
||||
/// <param name="zoneOffset">The zone at which to start mapping LEDs.</param>
|
||||
internal LogitechRGBDeviceInfo(RGBDeviceType deviceType, string model, LogitechDeviceCaps deviceCaps, int zones, int zoneOffset = 0)
|
||||
{
|
||||
this.DeviceType = deviceType;
|
||||
this.Model = model;
|
||||
this.DeviceCaps = deviceCaps;
|
||||
this.ZoneOffset = zoneOffset;
|
||||
this.Zones = zones;
|
||||
this.ZoneOffset = zoneOffset;
|
||||
|
||||
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user