Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LogitechSingleLightDevice.cs
Go to the documentation of this file.
2
4
6{
8 : base(RgbDeviceVendor.Logitech, RgbDeviceType.Generic, Fragment.FromGrid(new Rectangle(30, 0, 1, 1)), colorProfile)
9 {
10 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
11 base.PreferredLevelOfDetail = EffectDetailLevel.Low;
12 }
13
14 public override void Present()
15 {
16 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
17 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
18 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
19 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
20 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
22 {
23 Vector4 processedLedColor = GetProcessedLedColor(0);
24 NativeMethods.LogiLedSetLighting((int)(processedLedColor.X * 100f), (int)(processedLedColor.Y * 100f), (int)(processedLedColor.Z * 100f));
25 }
26 }
27}
static bool LogiLedSetTargetDevice(int targetDevice)
static bool LogiLedSetLighting(int redPercentage, int greenPercentage, int bluePercentage)
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37