mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-27 17:11:48 +01:00
df43fd0d74
I kinda just felt like doing it :P wanted to test myself, trying to make a cleaner UI
44 lines
2.2 KiB
C#
44 lines
2.2 KiB
C#
namespace HidLibrary
|
|
{
|
|
public class HidDeviceCapabilities
|
|
{
|
|
internal HidDeviceCapabilities(NativeMethods.HIDP_CAPS capabilities)
|
|
{
|
|
Usage = capabilities.Usage;
|
|
UsagePage = capabilities.UsagePage;
|
|
InputReportByteLength = capabilities.InputReportByteLength;
|
|
OutputReportByteLength = capabilities.OutputReportByteLength;
|
|
FeatureReportByteLength = capabilities.FeatureReportByteLength;
|
|
Reserved = capabilities.Reserved;
|
|
NumberLinkCollectionNodes = capabilities.NumberLinkCollectionNodes;
|
|
NumberInputButtonCaps = capabilities.NumberInputButtonCaps;
|
|
NumberInputValueCaps = capabilities.NumberInputValueCaps;
|
|
NumberInputDataIndices = capabilities.NumberInputDataIndices;
|
|
NumberOutputButtonCaps = capabilities.NumberOutputButtonCaps;
|
|
NumberOutputValueCaps = capabilities.NumberOutputValueCaps;
|
|
NumberOutputDataIndices = capabilities.NumberOutputDataIndices;
|
|
NumberFeatureButtonCaps = capabilities.NumberFeatureButtonCaps;
|
|
NumberFeatureValueCaps = capabilities.NumberFeatureValueCaps;
|
|
NumberFeatureDataIndices = capabilities.NumberFeatureDataIndices;
|
|
|
|
}
|
|
|
|
public short Usage { get; private set; }
|
|
public short UsagePage { get; private set; }
|
|
public short InputReportByteLength { get; private set; }
|
|
public short OutputReportByteLength { get; private set; }
|
|
public short FeatureReportByteLength { get; private set; }
|
|
public short[] Reserved { get; private set; }
|
|
public short NumberLinkCollectionNodes { get; private set; }
|
|
public short NumberInputButtonCaps { get; private set; }
|
|
public short NumberInputValueCaps { get; private set; }
|
|
public short NumberInputDataIndices { get; private set; }
|
|
public short NumberOutputButtonCaps { get; private set; }
|
|
public short NumberOutputValueCaps { get; private set; }
|
|
public short NumberOutputDataIndices { get; private set; }
|
|
public short NumberFeatureButtonCaps { get; private set; }
|
|
public short NumberFeatureValueCaps { get; private set; }
|
|
public short NumberFeatureDataIndices { get; private set; }
|
|
}
|
|
}
|