mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Updated corsair SDK to iCUE SDK v4.0.48
This commit is contained in:
1 parent
d60d4833ca
commit
180b0e4538
68 files changed
+2001
-3085
No files matched your search
@@ -0,0 +1,30 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: Represents an SDK access level.
|
||||
/// </summary>
|
||||
public enum CorsairAccessLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// iCUE-SDK: shared mode (default)
|
||||
/// </summary>
|
||||
Shared = 0,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: exclusive lightings, but shared events
|
||||
/// </summary>
|
||||
ExclusiveLightingControl = 1,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: exclusive key events, but shared lightings
|
||||
/// </summary>
|
||||
ExclusiveKeyEventsListening = 2,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: exclusive mode
|
||||
/// </summary>
|
||||
ExclusiveLightingControlAndKeyEventsListening = 3
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an SDK access mode.
|
||||
/// </summary>
|
||||
public enum CorsairAccessMode
|
||||
{
|
||||
ExclusiveLightingControl = 0
|
||||
};
|
||||
@@ -1,13 +1,10 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
|
||||
#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of available corsair channel device types.
|
||||
/// iCUE-SDK: Contains a list of available corsair channel device types.
|
||||
/// </summary>
|
||||
public enum CorsairChannelDeviceType
|
||||
{
|
||||
@@ -16,10 +13,11 @@ public enum CorsairChannelDeviceType
|
||||
FanSP = 2,
|
||||
FanLL = 3,
|
||||
FanML = 4,
|
||||
Strip = 5,
|
||||
DAP = 6,
|
||||
Pump = 7,
|
||||
FanQL = 8,
|
||||
WaterBlock = 9,
|
||||
EightLedSeriesFan = 10 // Previously called FanSPPRO
|
||||
FanQL = 5,
|
||||
EightLedSeriesFan = 6,
|
||||
Strip = 7,
|
||||
DAP = 8,
|
||||
Pump = 9,
|
||||
DRAM = 10,
|
||||
WaterBlock = 11,
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains list of available property types
|
||||
/// </summary>
|
||||
public enum CorsairDataType
|
||||
{
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for property of type Boolean
|
||||
/// </summary>
|
||||
Boolean = 0,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for property of type Int32 or Enumeration
|
||||
/// </summary>
|
||||
Int32 = 1,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for property of type Float64
|
||||
/// </summary>
|
||||
Float64 = 2,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for property of type String
|
||||
/// </summary>
|
||||
String = 3,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for array of Boolean
|
||||
/// </summary>
|
||||
BooleanArray = 16,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for array of Int32
|
||||
/// </summary>
|
||||
Int32Array = 17,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for array of Float64
|
||||
/// </summary>
|
||||
Float64Array = 18,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for array of String
|
||||
/// </summary>
|
||||
StringArray = 19
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
using System;
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of corsair device capabilities.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum CorsairDeviceCaps
|
||||
{
|
||||
/// <summary>
|
||||
/// For devices that do not support any SDK functions.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// For devices that has controlled lighting.
|
||||
/// </summary>
|
||||
Lighting = 1,
|
||||
|
||||
/// <summary>
|
||||
/// For devices that provide current state through set of properties.
|
||||
/// </summary>
|
||||
PropertyLookup = 2
|
||||
};
|
||||
@@ -0,0 +1,77 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains list of properties identifiers which can be read from device
|
||||
/// </summary>
|
||||
public enum CorsairDevicePropertyId
|
||||
{
|
||||
/// <summary>
|
||||
/// iCUE-SDK: dummy value
|
||||
/// </summary>
|
||||
Invalid = 0,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: array of CorsairDevicePropertyId members supported by device
|
||||
/// </summary>
|
||||
PropertyArray = 1,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: indicates Mic state (On or Off); used for headset, headset stand
|
||||
/// </summary>
|
||||
MicEnabled = 2,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: indicates Surround Sound state (On or Off); used for headset, headset stand
|
||||
/// </summary>
|
||||
SurroundSoundEnabled = 3,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: indicates Sidetone state (On or Off); used for headset (where applicable)
|
||||
/// </summary>
|
||||
SidetoneEnabled = 4,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: the number of active equalizer preset (integer, 1 - 5); used for headset, headset stand
|
||||
/// </summary>
|
||||
EqualizerPreset = 5,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: keyboard physical layout (see CorsairPhysicalLayout for valid values); used for keyboard
|
||||
/// </summary>
|
||||
PhysicalLayout = 6,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: keyboard logical layout (see CorsairLogicalLayout for valid values); used for keyboard
|
||||
/// </summary>
|
||||
LogicalLayout = 7,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: array of programmable G, M or S keys on device
|
||||
/// </summary>
|
||||
MacroKeyArray = 8,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: battery level (0 - 100); used for wireless devices
|
||||
/// </summary>
|
||||
BatteryLevel = 9,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: total number of LEDs connected to the channel
|
||||
/// </summary>
|
||||
ChannelLedCount = 10,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: number of LED-devices (fans, strips, etc.) connected to the channel which is controlled by the DIY device
|
||||
/// </summary>
|
||||
ChannelDeviceCount = 11,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: array of integers, each element describes the number of LEDs controlled by the channel device
|
||||
/// </summary>
|
||||
ChannelDeviceLedCountArray = 12,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: array of CorsairChannelDeviceType members, each element describes the type of the channel device
|
||||
/// </summary>
|
||||
ChannelDeviceTypeArray = 13
|
||||
}
|
||||
@@ -1,27 +1,83 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
|
||||
#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
|
||||
using System;
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of available corsair device types.
|
||||
/// iCUE-SDK: Contains a list of available corsair device types.
|
||||
/// </summary>
|
||||
public enum CorsairDeviceType
|
||||
[Flags]
|
||||
public enum CorsairDeviceType : uint
|
||||
{
|
||||
Unknown = 0,
|
||||
Mouse = 1,
|
||||
Keyboard = 2,
|
||||
Headset = 3,
|
||||
Mousepad = 4,
|
||||
HeadsetStand = 5,
|
||||
CommanderPro = 6,
|
||||
LightningNodePro = 7,
|
||||
MemoryModule = 8,
|
||||
Cooler = 9,
|
||||
Mainboard = 10,
|
||||
GraphicsCard = 11,
|
||||
Touchbar = 12
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for unknown/invalid devices
|
||||
/// </summary>
|
||||
Unknown = 0x0000,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for keyboards
|
||||
/// </summary>
|
||||
Keyboard = 0x0001,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for mice
|
||||
/// </summary>
|
||||
Mouse = 0x0002,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for mousemats
|
||||
/// </summary>
|
||||
Mousemat = 0x0004,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for headsets
|
||||
/// </summary>
|
||||
Headset = 0x0008,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for headset stands
|
||||
/// </summary>
|
||||
HeadsetStand = 0x0010,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for DIY-devices like Commander PRO
|
||||
/// </summary>
|
||||
FanLedController = 0x0020,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for DIY-devices like Lighting Node PRO
|
||||
/// </summary>
|
||||
LedController = 0x0040,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for memory modules
|
||||
/// </summary>
|
||||
MemoryModule = 0x0080,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for coolers
|
||||
/// </summary>
|
||||
Cooler = 0x0100,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for motherboards
|
||||
/// </summary>
|
||||
Motherboard = 0x0200,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for graphics cards
|
||||
/// </summary>
|
||||
GraphicsCard = 0x0400,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for touchbars
|
||||
/// </summary>
|
||||
Touchbar = 0x0800,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for all devices
|
||||
/// </summary>
|
||||
All = 0xFFFFFFFF
|
||||
};
|
||||
@@ -4,38 +4,47 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Shared list of all errors which could happen during calling of Corsair* functions.
|
||||
/// iCUE-SDK: Shared list of all errors which could happen during calling of Corsair* functions.
|
||||
/// </summary>
|
||||
public enum CorsairError
|
||||
{
|
||||
/// <summary>
|
||||
/// If previously called function completed successfully.
|
||||
/// iCUE-SDK: if previously called function completed successfully
|
||||
/// </summary>
|
||||
Success,
|
||||
Success = 0,
|
||||
|
||||
/// <summary>
|
||||
/// CUE is not running or was shut down or third-party control is disabled in CUE settings. (runtime error)
|
||||
/// iCUE-SDK: if iCUE is not running or was shut down or third-party control is disabled in iCUE settings (runtime error), or if developer did not call CorsairConnect after calling CorsairDisconnect or on app start (developer error)
|
||||
/// </summary>
|
||||
ServerNotFound,
|
||||
NotConnected = 1,
|
||||
|
||||
/// <summary>
|
||||
/// If some other client has or took over exclusive control. (runtime error)
|
||||
/// iCUE-SDK: if some other client has or took over exclusive control (runtime error)
|
||||
/// </summary>
|
||||
NoControl,
|
||||
NoControl = 2,
|
||||
|
||||
/// <summary>
|
||||
/// If developer did not perform protocol handshake. (developer error)
|
||||
/// iCUE-SDK: if developer is calling the function that is not supported by the server (either because protocol has broken by server or client or because the function is new and server is too old. Check CorsairSessionDetails for details) (developer error)
|
||||
/// </summary>
|
||||
ProtocolHandshakeMissing,
|
||||
IncompatibleProtocol = 3,
|
||||
|
||||
/// <summary>
|
||||
/// If developer is calling the function that is not supported by the server (either because protocol has broken by server or client or because the function is new and server is too old.
|
||||
/// Check CorsairProtocolDetails for details). (developer error)
|
||||
/// iCUE-SDK: if developer supplied invalid arguments to the function (for specifics look at function descriptions) (developer error)
|
||||
/// </summary>
|
||||
IncompatibleProtocol,
|
||||
InvalidArguments = 4,
|
||||
|
||||
/// <summary>
|
||||
/// If developer supplied invalid arguments to the function (for specifics look at function descriptions). (developer error)
|
||||
/// iCUE-SDK: if developer is calling the function that is not allowed due to current state (reading improper properties from device, or setting callback when it has already been set) (developer error)
|
||||
/// </summary>
|
||||
InvalidArguments
|
||||
InvalidOperation = 5,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: if invalid device id has been supplied as an argument to the function (when device id refers to disconnected device) (runtime error)
|
||||
/// </summary>
|
||||
DeviceNotFound = 6,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: if specific functionality (key interception) is disabled in iCUE settings (runtime error)
|
||||
/// </summary>
|
||||
NotAllowed = 7
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains a list of led groups. Led group is used as a part of led identifier
|
||||
/// </summary>
|
||||
public enum CorsairLedGroup
|
||||
{
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for keyboard leds
|
||||
/// </summary>
|
||||
Keyboard = 0,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for keyboard leds on G keys
|
||||
/// </summary>
|
||||
KeyboardGKeys = 1,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for keyboard lighting pipe leds
|
||||
/// </summary>
|
||||
KeyboardEdge = 2,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for vendor specific keyboard leds (ProfileSwitch, DialRing, etc.)
|
||||
/// </summary>
|
||||
KeyboardOem = 3,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for mouse leds
|
||||
/// </summary>
|
||||
Mouse = 4,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for mousemat leds
|
||||
/// </summary>
|
||||
Mousemat = 5,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for headset leds
|
||||
/// </summary>
|
||||
Headset = 6,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for headset stand leds
|
||||
/// </summary>
|
||||
HeadsetStand = 7,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for memory module leds
|
||||
/// </summary>
|
||||
MemoryModule = 8,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for motherboard leds
|
||||
/// </summary>
|
||||
Motherboard = 9,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for graphics card leds
|
||||
/// </summary>
|
||||
GraphicsCard = 10,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for leds on the first channel of DIY devices and coolers
|
||||
/// </summary>
|
||||
DIY_Channel1 = 11,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for leds on the second channel of DIY devices and coolers
|
||||
/// </summary>
|
||||
DIY_Channel2 = 12,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for leds on the third channel of DIY devices and coolers
|
||||
/// </summary>
|
||||
DIY_Channel3 = 13,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: for touchbar leds
|
||||
/// </summary>
|
||||
Touchbar = 14
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,142 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains a list of keyboard leds that belong to CLG_Keyboard group
|
||||
/// </summary>
|
||||
public enum CorsairLedIdKeyboard
|
||||
{
|
||||
Invalid = 0,
|
||||
Escape = 1,
|
||||
F1 = 2,
|
||||
F2 = 3,
|
||||
F3 = 4,
|
||||
F4 = 5,
|
||||
F5 = 6,
|
||||
F6 = 7,
|
||||
F7 = 8,
|
||||
F8 = 9,
|
||||
F9 = 10,
|
||||
F10 = 11,
|
||||
F11 = 12,
|
||||
F12 = 13,
|
||||
GraveAccentAndTilde = 14,
|
||||
One = 15,
|
||||
Two = 16,
|
||||
Three = 17,
|
||||
Four = 18,
|
||||
Five = 19,
|
||||
Six = 20,
|
||||
Seven = 21,
|
||||
Eight = 22,
|
||||
Nine = 23,
|
||||
Zero = 24,
|
||||
MinusAndUnderscore = 25,
|
||||
EqualsAndPlus = 26,
|
||||
Backspace = 27,
|
||||
Tab = 28,
|
||||
Q = 29,
|
||||
W = 30,
|
||||
E = 31,
|
||||
R = 32,
|
||||
T = 33,
|
||||
Y = 34,
|
||||
U = 35,
|
||||
I = 36,
|
||||
O = 37,
|
||||
P = 38,
|
||||
BracketLeft = 39,
|
||||
BracketRight = 40,
|
||||
CapsLock = 41,
|
||||
A = 42,
|
||||
S = 43,
|
||||
D = 44,
|
||||
F = 45,
|
||||
G = 46,
|
||||
H = 47,
|
||||
J = 48,
|
||||
K = 49,
|
||||
L = 50,
|
||||
SemicolonAndColon = 51,
|
||||
ApostropheAndDoubleQuote = 52,
|
||||
Backslash = 53,
|
||||
Enter = 54,
|
||||
LeftShift = 55,
|
||||
NonUsBackslash = 56,
|
||||
Z = 57,
|
||||
X = 58,
|
||||
C = 59,
|
||||
V = 60,
|
||||
B = 61,
|
||||
N = 62,
|
||||
M = 63,
|
||||
CommaAndLessThan = 64,
|
||||
PeriodAndBiggerThan = 65,
|
||||
SlashAndQuestionMark = 66,
|
||||
RightShift = 67,
|
||||
LeftCtrl = 68,
|
||||
LeftGui = 69,
|
||||
LeftAlt = 70,
|
||||
Space = 71,
|
||||
RightAlt = 72,
|
||||
RightGui = 73,
|
||||
Application = 74,
|
||||
RightCtrl = 75,
|
||||
LedProgramming = 76,
|
||||
Lang1 = 77,
|
||||
Lang2 = 78,
|
||||
International1 = 79,
|
||||
International2 = 80,
|
||||
International3 = 81,
|
||||
International4 = 82,
|
||||
International5 = 83,
|
||||
PrintScreen = 84,
|
||||
ScrollLock = 85,
|
||||
PauseBreak = 86,
|
||||
Insert = 87,
|
||||
Home = 88,
|
||||
PageUp = 89,
|
||||
Delete = 90,
|
||||
End = 91,
|
||||
PageDown = 92,
|
||||
UpArrow = 93,
|
||||
LeftArrow = 94,
|
||||
DownArrow = 95,
|
||||
RightArrow = 96,
|
||||
NonUsTilde = 97,
|
||||
Brightness = 98,
|
||||
WinLock = 99,
|
||||
Mute = 100,
|
||||
Stop = 101,
|
||||
ScanPreviousTrack = 102,
|
||||
PlayPause = 103,
|
||||
ScanNextTrack = 104,
|
||||
NumLock = 105,
|
||||
KeypadSlash = 106,
|
||||
KeypadAsterisk = 107,
|
||||
KeypadMinus = 108,
|
||||
Keypad7 = 109,
|
||||
Keypad8 = 110,
|
||||
Keypad9 = 111,
|
||||
KeypadPlus = 112,
|
||||
Keypad4 = 113,
|
||||
Keypad5 = 114,
|
||||
Keypad6 = 115,
|
||||
Keypad1 = 116,
|
||||
Keypad2 = 117,
|
||||
Keypad3 = 118,
|
||||
KeypadComma = 119,
|
||||
KeypadEnter = 120,
|
||||
Keypad0 = 121,
|
||||
KeypadPeriodAndDelete = 122,
|
||||
VolumeUp = 123,
|
||||
VolumeDown = 124,
|
||||
MR = 125,
|
||||
M1 = 126,
|
||||
M2 = 127,
|
||||
M3 = 128,
|
||||
Fn = 129
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of available logical layouts for corsair keyboards.
|
||||
/// iCUE-SDK: Contains a list of available logical layouts for corsair keyboards.
|
||||
/// </summary>
|
||||
public enum CorsairLogicalKeyboardLayout
|
||||
{
|
||||
Invalid = 0,
|
||||
US_Int = 1,
|
||||
NA = 2,
|
||||
EU = 3,
|
||||
|
||||
@@ -4,32 +4,14 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of available physical layouts for corsair keyboards.
|
||||
/// iCUE-SDK: Contains a list of available physical layouts for corsair keyboards.
|
||||
/// </summary>
|
||||
public enum CorsairPhysicalKeyboardLayout
|
||||
{
|
||||
/// <summary>
|
||||
/// US-Keyboard
|
||||
/// </summary>
|
||||
Invalid = 0,
|
||||
US = 1,
|
||||
|
||||
/// <summary>
|
||||
/// UK-Keyboard
|
||||
/// </summary>
|
||||
UK = 2,
|
||||
|
||||
/// <summary>
|
||||
/// BR-Keyboard
|
||||
/// </summary>
|
||||
BR = 3,
|
||||
|
||||
/// <summary>
|
||||
/// JP-Keyboard
|
||||
/// </summary>
|
||||
JP = 4,
|
||||
|
||||
/// <summary>
|
||||
/// KR-Keyboard
|
||||
/// </summary>
|
||||
KR = 5
|
||||
JP = 3,
|
||||
KR = 4,
|
||||
BR = 5
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// Contains a list of available physical layouts for mice.
|
||||
/// </summary>
|
||||
public enum CorsairPhysicalMouseLayout
|
||||
{
|
||||
/// <summary>
|
||||
/// Zone1-Mouse
|
||||
/// </summary>
|
||||
Zones1 = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Zone2-Mouse
|
||||
/// </summary>
|
||||
Zones2 = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Zone3-Mouse
|
||||
/// </summary>
|
||||
Zones3 = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Zone4-Mouse
|
||||
/// </summary>
|
||||
Zones4 = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Zone5-Mouse
|
||||
/// </summary>
|
||||
Zones5 = 101,
|
||||
|
||||
/// <summary>
|
||||
/// Zone6-Mouse
|
||||
/// </summary>
|
||||
Zones6 = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Zone7-Mouse
|
||||
/// </summary>
|
||||
Zones7 = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Zone8-Mouse
|
||||
/// </summary>
|
||||
Zones8 = 13,
|
||||
|
||||
/// <summary>
|
||||
/// Zone9-Mouse
|
||||
/// </summary>
|
||||
Zones9 = 14,
|
||||
|
||||
/// <summary>
|
||||
/// Zone10-Mouse
|
||||
/// </summary>
|
||||
Zones10 = 15,
|
||||
|
||||
/// <summary>
|
||||
/// Zone11-Mouse
|
||||
/// </summary>
|
||||
Zones11 = 16,
|
||||
|
||||
/// <summary>
|
||||
/// Zone12-Mouse
|
||||
/// </summary>
|
||||
Zones12 = 17,
|
||||
|
||||
/// <summary>
|
||||
/// Zone13-Mouse
|
||||
/// </summary>
|
||||
Zones13 = 18,
|
||||
|
||||
/// <summary>
|
||||
/// Zone14-Mouse
|
||||
/// </summary>
|
||||
Zones14 = 19,
|
||||
|
||||
/// <summary>
|
||||
/// Zone15-Mouse
|
||||
/// </summary>
|
||||
Zones15 = 20,
|
||||
|
||||
/// <summary>
|
||||
/// Zone16-Mouse
|
||||
/// </summary>
|
||||
Zones16 = 21,
|
||||
|
||||
/// <summary>
|
||||
/// Zone17-Mouse
|
||||
/// </summary>
|
||||
Zones17 = 22,
|
||||
|
||||
/// <summary>
|
||||
/// Zone18-Mouse
|
||||
/// </summary>
|
||||
Zones18 = 23,
|
||||
|
||||
/// <summary>
|
||||
/// Zone19-Mouse
|
||||
/// </summary>
|
||||
Zones19 = 24,
|
||||
|
||||
/// <summary>
|
||||
/// Zone20-Mouse
|
||||
/// </summary>
|
||||
Zones20 = 25
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains list of operations that can be applied to the property
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum CorsairPropertyFlag
|
||||
{
|
||||
/// <summary>
|
||||
/// -
|
||||
/// </summary>
|
||||
None = 0x00,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: describes readable property
|
||||
/// </summary>
|
||||
CanRead = 0x01,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: describes writable property
|
||||
/// </summary>
|
||||
CanWrite = 0x02,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: if flag is set, then index should be used to read/write multiple properties that share the same property identifier
|
||||
/// </summary>
|
||||
Indexed = 0x04
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace RGB.NET.Devices.Corsair;
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: contains a list of all possible session states
|
||||
/// </summary>
|
||||
public enum CorsairSessionState
|
||||
{
|
||||
/// <summary>
|
||||
/// iCUE-SDK: dummy value
|
||||
/// </summary>
|
||||
Invalid = 0,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: client not initialized or client closed connection (initial state)
|
||||
/// </summary>
|
||||
Closed = 1,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: client initiated connection but not connected yet
|
||||
/// </summary>
|
||||
Connecting = 2,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: server did not respond, sdk will try again
|
||||
/// </summary>
|
||||
Timeout = 3,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: server did not allow connection
|
||||
/// </summary>
|
||||
ConnectionRefused = 4,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: server closed connection
|
||||
/// </summary>
|
||||
ConnectionLost = 5,
|
||||
|
||||
/// <summary>
|
||||
/// iCUE-SDK: successfully connected
|
||||
/// </summary>
|
||||
Connected = 6
|
||||
};
|
||||
Reference in new issue
Block a user