HidDevice.GetBooleanControlDescriptions(HidReportType, UInt16, UInt16) 方法

定义

检索给定 HID 设备的布尔控件的说明。

public:
 virtual IVectorView<HidBooleanControlDescription ^> ^ GetBooleanControlDescriptions(HidReportType reportType, unsigned short usagePage, unsigned short usageId) = GetBooleanControlDescriptions;
IVectorView<HidBooleanControlDescription> GetBooleanControlDescriptions(HidReportType const& reportType, uint16_t const& usagePage, uint16_t const& usageId);
public IReadOnlyList<HidBooleanControlDescription> GetBooleanControlDescriptions(HidReportType reportType, ushort usagePage, ushort usageId);
function getBooleanControlDescriptions(reportType, usagePage, usageId)
Public Function GetBooleanControlDescriptions (reportType As HidReportType, usagePage As UShort, usageId As UShort) As IReadOnlyList(Of HidBooleanControlDescription)

参数

reportType
HidReportType

指定请求控件说明的报表类型。

usagePage
UInt16

unsigned short

uint16_t

标识与控件关联的使用情况页。

值 0 被视为所有使用情况页的野生卡。

usageId
UInt16

unsigned short

uint16_t

标识与控件关联的使用情况。

值 0 被视为所有使用 ID 的野生卡。

返回

HidBooleanControlDescription 对象的向量。

注解

布尔控件是返回 On/Off 值的简单控件。 (它们有时称为按钮控件。)

适用于

另请参阅