Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RazerHeadset.cs
Go to the documentation of this file.
2
4
5internal class RazerHeadset : RgbDevice
6{
8
9 private readonly EffectHandle _handle = new EffectHandle();
10
11 public RazerHeadset(DeviceColorProfile colorProfile)
12 : base(RgbDeviceVendor.Razer, RgbDeviceType.Headset, Fragment.FromGrid(new Rectangle(-5, 0, 5, 1)), colorProfile)
13 {
14 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
15 base.PreferredLevelOfDetail = EffectDetailLevel.Low;
16 }
17
18 public override void Present()
19 {
20 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
21 for (int i = 0; i < _effect.Color.Length; i++)
22 {
24 }
26 _handle.Apply();
27 }
28}
void SetAsHeadsetEffect(ref NativeMethods.CustomHeadsetEffect effect)
NativeMethods.CustomHeadsetEffect _effect
RazerHeadset(DeviceColorProfile colorProfile)
static uint Vector4ToDeviceColor(Vector4 color)
Definition RazerHelper.cs:7
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37