mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
Separated keyboard, mouse and headset
This commit is contained in:
1 parent
a4a81cf3c3
commit
575804c8bf
31 files changed
+528
-405
No files matched your search
@@ -14,8 +14,8 @@ namespace CUE.NET.Native
|
||||
{
|
||||
internal CorsairDeviceType type; // enum describing device type
|
||||
internal IntPtr model; // null - terminated device model(like “K95RGB”)
|
||||
internal CorsairPhysicalLayout physicalLayout; // enum describing physical layout of the keyboard or mouse
|
||||
internal CorsairLogicalLayout logicalLayout; // enum describing logical layout of the keyboard as set in CUE settings
|
||||
internal int physicalLayout; // enum describing physical layout of the keyboard or mouse
|
||||
internal int logicalLayout; // enum describing logical layout of the keyboard as set in CUE settings
|
||||
internal int capsMask; // mask that describes device capabilities, formed as logical “or” of CorsairDeviceCaps enum values
|
||||
}
|
||||
}
|
||||
@@ -3,18 +3,17 @@
|
||||
#pragma warning disable 649 // Field 'x' is never assigned
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using CUE.NET.Enums;
|
||||
|
||||
namespace CUE.NET.Native
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class _CorsairLedColor // contains information about led and its color
|
||||
public class _CorsairLedColor // contains information about led and its color
|
||||
{
|
||||
|
||||
internal CorsairLedId ledId; // identifier of LED to set
|
||||
internal int r; // red brightness[0..255]
|
||||
internal int g; // green brightness[0..255]
|
||||
internal int b; // blue brightness[0..255]
|
||||
internal int ledId; // identifier of LED to set
|
||||
internal int r; // red brightness[0..255]
|
||||
internal int g; // green brightness[0..255]
|
||||
internal int b; // blue brightness[0..255]
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
#pragma warning disable 649 // Field 'x' is never assigned
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using CUE.NET.Enums;
|
||||
|
||||
namespace CUE.NET.Native
|
||||
{
|
||||
@@ -11,10 +10,10 @@ namespace CUE.NET.Native
|
||||
[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 CorsairLedId ledId; // identifier of led
|
||||
internal int ledId; // identifier of led
|
||||
internal double top;
|
||||
internal double left;
|
||||
internal double height;
|
||||
internal double width; // values in mm
|
||||
internal double width; // values in mm
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user