Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Render() [2/2]

override void ReLogic.Peripherals.RGB.Logitech.LogitechKeyboard.Render ( IEnumerable< RgbKey > keys)
inline

Definition at line 453 of file LogitechKeyboard.cs.

454 {
455 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
456 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
457 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
458 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
459 int listCount = 0;
460 foreach (RgbKey key in keys)
461 {
462 if (XnaToLogitechKeys.TryGetValue(key.Key, out var value))
463 {
464 Color color = ProcessLedColor(key.CurrentColor);
466 NativeMethods.LogiLedSetLightingForKeyWithKeyName(value, ((Color)(ref color)).R * 100 / 255, ((Color)(ref color)).G * 100 / 255, ((Color)(ref color)).B * 100 / 255);
467 }
468 }
469 NativeMethods.LogiLedExcludeKeysFromBitmap(_excludedKeys, listCount);
470 }
static readonly Dictionary< Keys, KeyName > XnaToLogitechKeys
Color ProcessLedColor(Color color)
Definition RgbDevice.cs:53

References ReLogic.Peripherals.RGB.Logitech.LogitechKeyboard._excludedKeys, ReLogic.Peripherals.RGB.Logitech.B, ReLogic.Peripherals.RGB.Logitech.G, ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedExcludeKeysFromBitmap(), ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetLightingForKeyWithKeyName(), ReLogic.Peripherals.RGB.RgbDevice.ProcessLedColor(), ReLogic.Peripherals.RGB.Logitech.R, and ReLogic.Peripherals.RGB.Logitech.LogitechKeyboard.XnaToLogitechKeys.