共用方式為


HidFeatureReport.GetBooleanControl(UInt16, UInt16) 方法

定義

擷取與 usagePage 和 usageId 參數相關聯的布林值控制項,並在指定的功能報告中找到。

public:
 virtual HidBooleanControl ^ GetBooleanControl(unsigned short usagePage, unsigned short usageId) = GetBooleanControl;
HidBooleanControl GetBooleanControl(uint16_t const& usagePage, uint16_t const& usageId);
public HidBooleanControl GetBooleanControl(ushort usagePage, ushort usageId);
function getBooleanControl(usagePage, usageId)
Public Function GetBooleanControl (usagePage As UShort, usageId As UShort) As HidBooleanControl

參數

usagePage
UInt16

unsigned short

uint16_t

指定 HID 裝置之最上層集合的使用頁面。

usageId
UInt16

unsigned short

uint16_t

指定 HID 裝置之最上層集合的使用識別碼。

傳回

HidBooleanControl物件。

適用於

另請參閱