1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00
RGB.NET/RGB.NET.Devices.Logitech/HID/FapShortRequest.cs
2021-09-22 17:08:33 +01:00

30 lines
769 B
C#

using System.Runtime.InteropServices;
namespace RGB.NET.Devices.Logitech.HID
{
[StructLayout(LayoutKind.Sequential, Pack = 0, Size = 7)]
public struct FapShortRequest
{
const byte LOGITECH_SHORT_MESSAGE = 0x10;
public byte ReportId;
public byte DeviceIndex;
public byte FeatureIndex;
public byte FeatureCommand;
public byte Data0;
public byte Data1;
public byte Data2;
public void Init(byte deviceIndex, byte featureIndex)
{
ReportId = LOGITECH_SHORT_MESSAGE;
DeviceIndex = deviceIndex;
FeatureIndex = featureIndex;
FeatureCommand = 0;
Data0 = 0;
Data1 = 0;
Data2 = 0;
}
}
}