mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
df43fd0d74
I kinda just felt like doing it :P wanted to test myself, trying to make a cleaner UI
22 lines
703 B
C#
22 lines
703 B
C#
namespace HidLibrary
|
|
{
|
|
public class HidDeviceAttributes
|
|
{
|
|
internal HidDeviceAttributes(NativeMethods.HIDD_ATTRIBUTES attributes)
|
|
{
|
|
VendorId = attributes.VendorID;
|
|
ProductId = attributes.ProductID;
|
|
Version = attributes.VersionNumber;
|
|
|
|
VendorHexId = "0x" + attributes.VendorID.ToString("X4");
|
|
ProductHexId = "0x" + attributes.ProductID.ToString("X4");
|
|
}
|
|
|
|
public int VendorId { get; private set; }
|
|
public int ProductId { get; private set; }
|
|
public int Version { get; private set; }
|
|
public string VendorHexId { get; set; }
|
|
public string ProductHexId { get; set; }
|
|
}
|
|
}
|