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
2021-06-01 23:53:56 +02:00

20 lines
687 B
C#

#pragma warning disable IDE1006 // Naming Styles
// ReSharper disable InconsistentNaming
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;
}
}