2015-02-08 22:51:52 +01:00
|
|
|
|
namespace DS4Windows
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|