mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Fixed some small mistakes left from the LedId-conversion
This commit is contained in:
parent
d7c12e5e4c
commit
741523d6ef
@ -17,6 +17,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="RGB.NET.Core" version="0.0.1" />
|
<dependency id="RGB.NET.Core" version="0.0.1" />
|
||||||
<dependency id="System.ValueTuple" version="4.4.0" />
|
<dependency id="System.ValueTuple" version="4.4.0" />
|
||||||
|
<dependency id="HidSharp" version="1.5" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
|||||||
@ -203,7 +203,7 @@
|
|||||||
<Width>1.5</Width>
|
<Width>1.5</Width>
|
||||||
</Led>
|
</Led>
|
||||||
|
|
||||||
<Led Id="Keyboard_ArrowLef">
|
<Led Id="Keyboard_ArrowLeft">
|
||||||
<X>+6.75</X>
|
<X>+6.75</X>
|
||||||
</Led>
|
</Led>
|
||||||
<Led Id="Keyboard_ArrowDown" />
|
<Led Id="Keyboard_ArrowDown" />
|
||||||
|
|||||||
@ -203,7 +203,7 @@
|
|||||||
<Width>1.5</Width>
|
<Width>1.5</Width>
|
||||||
</Led>
|
</Led>
|
||||||
|
|
||||||
<Led Id="Keyboard_ArrowLef">
|
<Led Id="Keyboard_ArrowLeft">
|
||||||
<X>+6.75</X>
|
<X>+6.75</X>
|
||||||
</Led>
|
</Led>
|
||||||
<Led Id="Keyboard_ArrowDown" />
|
<Led Id="Keyboard_ArrowDown" />
|
||||||
|
|||||||
@ -28,7 +28,7 @@ namespace RGB.NET.Devices.Logitech
|
|||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override object CreateLedCustomData(LedId ledId) => PerKeyIdMapping.DEFAULT[ledId];
|
protected override object CreateLedCustomData(LedId ledId) => PerKeyIdMapping.DEFAULT.TryGetValue(ledId, out LogitechLedId logitechLedId) ? logitechLedId : LogitechLedId.Invalid;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void UpdateLeds(IEnumerable<Led> ledsToUpdate)
|
protected override void UpdateLeds(IEnumerable<Led> ledsToUpdate)
|
||||||
|
|||||||
@ -122,6 +122,8 @@ namespace RGB.NET.Devices.Logitech
|
|||||||
{ LedId.Keyboard_Programmable7, LogitechLedId.G_7 },
|
{ LedId.Keyboard_Programmable7, LogitechLedId.G_7 },
|
||||||
{ LedId.Keyboard_Programmable8, LogitechLedId.G_8 },
|
{ LedId.Keyboard_Programmable8, LogitechLedId.G_8 },
|
||||||
{ LedId.Keyboard_Programmable9, LogitechLedId.G_9 },
|
{ LedId.Keyboard_Programmable9, LogitechLedId.G_9 },
|
||||||
|
{ LedId.Logo, LogitechLedId.G_LOGO },
|
||||||
|
{ LedId.Keyboard_Custom1, LogitechLedId.G_BADGE },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ namespace RGB.NET.Devices.Novation
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override object CreateLedCustomData(LedId ledId) => LaunchpadIdMapping.DEFAULT[ledId];
|
protected override object CreateLedCustomData(LedId ledId) => LaunchpadIdMapping.DEFAULT.TryGetValue(ledId, out NovationLedId novationLedId) ? novationLedId : NovationLedId.Invalid;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user