Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Present()

override void ReLogic.Peripherals.RGB.Logitech.LogitechKeyboard.Present ( )
inline

Definition at line 432 of file LogitechKeyboard.cs.

433 {
434 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
435 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
436 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
437 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
438 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
439 if (NativeMethods.LogiLedSetTargetDevice(4))
440 {
441 for (int i = 0; i < base.LedCount; i++)
442 {
444 _colors[i * 4 + 2] = (byte)(processedLedColor.X * 255f);
445 _colors[i * 4 + 1] = (byte)(processedLedColor.Y * 255f);
446 _colors[i * 4] = (byte)(processedLedColor.Z * 255f);
447 _colors[i * 4 + 3] = byte.MaxValue;
448 }
449 NativeMethods.LogiLedSetLightingFromBitmap(_colors);
450 }
451 }
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37

References ReLogic.Peripherals.RGB.Logitech.LogitechKeyboard._colors, ReLogic.Peripherals.RGB.RgbDevice.GetProcessedLedColor(), ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetLightingFromBitmap(), and ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetTargetDevice().