Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CorsairHeadset.cs
Go to the documentation of this file.
2
4
6{
7 private CorsairHeadset(Fragment fragment, CorsairLedPosition[] ledPositions, DeviceColorProfile colorProfile)
8 : base(RgbDeviceType.Headset, fragment, ledPositions, colorProfile)
9 {
10 base.PreferredLevelOfDetail = EffectDetailLevel.Low;
11 }
12
13 public static CorsairHeadset Create(int deviceIndex, DeviceColorProfile colorProfile)
14 {
15 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
16 CorsairLedPosition[] ledPositions = new CorsairLedPosition[2]
17 {
19 {
20 Width = 1.0,
21 Height = 1.0,
22 LedId = CorsairLedId.CLH_LeftLogo
23 },
25 {
26 Width = 1.0,
27 Height = 1.0,
28 LedId = CorsairLedId.CLH_RightLogo
29 }
30 };
31 return new CorsairHeadset(Fragment.FromGrid(new Rectangle(-2, 0, 2, 1)), ledPositions, colorProfile);
32 }
33}
CorsairHeadset(Fragment fragment, CorsairLedPosition[] ledPositions, DeviceColorProfile colorProfile)
static CorsairHeadset Create(int deviceIndex, DeviceColorProfile colorProfile)
static Fragment FromGrid(Rectangle grid)
Definition Fragment.cs:38