Reorganized project into a (hopefully) better structure

This commit is contained in:
DarthAffe committed 2015-09-19 16:24:14 +02:00
1 parent ce4e80c24b
commit fc66ac0ceb
33 files changed
+111 -99

No files matched your search

+10 -10
View File
@@ -1,6 +1,6 @@
using System;
using System.Runtime.InteropServices;
using CUE.NET.Enums;
using CUE.NET.Devices.Generic.Enums;
namespace CUE.NET.Native
{
@@ -13,14 +13,14 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// set specified leds to some colors. The color is retained until changed by successive calls. This function does not take logical layout into account
public static extern bool CorsairSetLedsColors(int size, IntPtr ledsColors);
internal static extern bool CorsairSetLedsColors(int size, IntPtr ledsColors);
//#if WIN64
// [DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
//#else
// [DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
//#endif
//public static extern bool CorsairSetLedsColorsAsync(int size, CorsairLedColor* ledsColors, void(*CallbackType)(void*, bool, CorsairError), void* context);
//internal static extern bool CorsairSetLedsColorsAsync(int size, CorsairLedColor* ledsColors, void(*CallbackType)(void*, bool, CorsairError), void* context);
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -28,7 +28,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// returns number of connected Corsair devices that support lighting control.
public static extern int CorsairGetDeviceCount();
internal static extern int CorsairGetDeviceCount();
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -36,7 +36,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// returns information about device at provided index
public static extern IntPtr CorsairGetDeviceInfo(int deviceIndex);
internal static extern IntPtr CorsairGetDeviceInfo(int deviceIndex);
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -44,7 +44,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// provides list of keyboard LEDs with their physical positions.
public static extern IntPtr CorsairGetLedPositions();
internal static extern IntPtr CorsairGetLedPositions();
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -52,7 +52,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// retrieves led id for key name taking logical layout into account.
public static extern int CorsairGetLedIdForKeyName(char keyName);
internal static extern int CorsairGetLedIdForKeyName(char keyName);
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -60,7 +60,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// requestes control using specified access mode. By default client has shared control over lighting so there is no need to call CorsairRequestControl unless client requires exclusive control
public static extern bool CorsairRequestControl(CorsairAccessMode accessMode);
internal static extern bool CorsairRequestControl(CorsairAccessMode accessMode);
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -68,7 +68,7 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// checks file and protocol version of CUE to understand which of SDK functions can be used with this version of CUE
public static extern _CorsairProtocolDetails CorsairPerformProtocolHandshake();
internal static extern _CorsairProtocolDetails CorsairPerformProtocolHandshake();
#if WIN64
[DllImport("CUESDK.x64_2013.dll", CallingConvention = CallingConvention.Cdecl)]
@@ -76,6 +76,6 @@ namespace CUE.NET.Native
[DllImport("CUESDK_2013.dll", CallingConvention = CallingConvention.Cdecl)]
#endif
// returns last error that occured while using any of Corsair* functions
public static extern CorsairError CorsairGetLastError();
internal static extern CorsairError CorsairGetLastError();
}
}
+2 -2
View File
@@ -4,13 +4,13 @@
using System;
using System.Runtime.InteropServices;
using CUE.NET.Enums;
using CUE.NET.Devices.Generic.Enums;
namespace CUE.NET.Native
{
// ReSharper disable once InconsistentNaming
[StructLayout(LayoutKind.Sequential)]
public class _CorsairDeviceInfo // contains information about device
internal class _CorsairDeviceInfo // contains information about device
{
internal CorsairDeviceType type; // enum describing device type
internal IntPtr model; // null - terminated device model(like “K95RGB”)
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CUE.NET.Native
{
// ReSharper disable once InconsistentNaming
[StructLayout(LayoutKind.Sequential)]
public class _CorsairLedColor // contains information about led and its color
internal class _CorsairLedColor // contains information about led and its color
{
internal int ledId; // identifier of LED to set
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CUE.NET.Native
{
// ReSharper disable once InconsistentNaming
[StructLayout(LayoutKind.Sequential)]
public class _CorsairLedPosition // contains led id and position of led rectangle.Most of the keys are rectangular. In case if key is not rectangular(like Enter in ISO / UK layout) it returns the smallest rectangle that fully contains the key
internal class _CorsairLedPosition // contains led id and position of led rectangle.Most of the keys are rectangular. In case if key is not rectangular(like Enter in ISO / UK layout) it returns the smallest rectangle that fully contains the key
{
internal int ledId; // identifier of led
internal double top;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CUE.NET.Native
{
// ReSharper disable once InconsistentNaming
[StructLayout(LayoutKind.Sequential)]
public class _CorsairLedPositions // contains number of leds and arrays with their positions
internal class _CorsairLedPositions // contains number of leds and arrays with their positions
{
internal int numberOfLed; // integer value.Number of elements in following array
internal IntPtr pLedPosition; // array of led positions