1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00
RGB.NET/RGB.NET.Devices.Razer/Native/_KeyboardCustomEffect.cs

17 lines
597 B
C#

using System.Runtime.InteropServices;
namespace RGB.NET.Devices.Razer.Native
{
[StructLayout(LayoutKind.Sequential)]
internal struct _KeyboardCustomEffect
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = _Defines.KEYBOARD_MAX_LEDS)]
public _Color[] Color;
//diogotr7: I don't know what these "keys" mean, they were introduced in the Keyboard::v2
//namespace. we need to put them here to give razer the struct size it expects
[MarshalAs(UnmanagedType.ByValArray, SizeConst = _Defines.KEYBOARD_MAX_LEDS)]
public uint[] Key;
}
}