Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RazerMousepad.cs
Go to the documentation of this file.
2
4
5internal class RazerMousepad : RgbDevice
6{
8
9 private readonly EffectHandle _handle = new EffectHandle();
10
11 public RazerMousepad(DeviceColorProfile colorProfile)
12 : base(RgbDeviceVendor.Razer, RgbDeviceType.Mousepad, Fragment.FromCustom(CreatePositionList()), colorProfile)
13 {
14 }
15
16 private static Point[] CreatePositionList()
17 {
18 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
19 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
20 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
21 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
22 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
23 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
24 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
25 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
26 //IL_0060: Unknown result type (might be due to invalid IL or missing references)
27 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
28 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
29 //IL_0076: Unknown result type (might be due to invalid IL or missing references)
30 Point[] array = (Point[])(object)new Point[15];
31 Point point = default(Point);
32 ((Point)(ref point))._002Ector(26, 0);
33 for (int i = 0; i < 5; i++)
34 {
35 array[i] = new Point(point.X, point.Y + i);
36 array[14 - i] = new Point(point.X + 6, point.Y + i);
37 }
38 for (int j = 5; j < 10; j++)
39 {
40 array[j] = new Point(j - 5 + point.X + 1, point.Y + 5);
41 }
42 return array;
43 }
44
45 public override void Present()
46 {
47 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
48 for (int i = 0; i < base.LedCount; i++)
49 {
51 }
53 _handle.Apply();
54 }
55}
void SetAsMousepadEffect(ref NativeMethods.CustomMousepadEffect effect)
static uint Vector4ToDeviceColor(Vector4 color)
Definition RazerHelper.cs:7
RazerMousepad(DeviceColorProfile colorProfile)
NativeMethods.CustomMousepadEffect _effect
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37