Code cleanup

This commit is contained in:
DarthAffe committed 2016-09-10 18:06:07 +02:00
1 parent f8c537aaff
commit 8390c7da68
22 files changed
+146 -116

No files matched your search

+4 -9
View File
@@ -4,18 +4,9 @@
// ReSharper disable UnusedMember.Global
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using CUE.NET.Brushes;
using CUE.NET.Devices.Generic;
using CUE.NET.Devices.Keyboard.Enums;
using CUE.NET.Effects;
using CUE.NET.Groups;
using CUE.NET.Helper;
using CUE.NET.Native;
namespace CUE.NET.Devices.Keyboard
@@ -50,6 +41,9 @@ namespace CUE.NET.Devices.Keyboard
#region Methods
/// <summary>
/// Initializes the LEDs of the device.
/// </summary>
protected override void InitializeLeds()
{
_CorsairLedPositions nativeLedPositions = (_CorsairLedPositions)Marshal.PtrToStructure(_CUESDK.CorsairGetLedPositions(), typeof(_CorsairLedPositions));
@@ -63,6 +57,7 @@ namespace CUE.NET.Devices.Keyboard
ptr = new IntPtr(ptr.ToInt64() + structSize);
}
}
#endregion
}
}
@@ -6,7 +6,7 @@
public enum BrushCalculationMode
{
/// <summary>
/// The calculation rectangle for brushes will be the rectangle around the keygroup the brush is applied to.
/// The calculation rectangle for brushes will be the rectangle around the ledgroup the brush is applied to.
/// </summary>
Relative,
/// <summary>