Bagikan melalui


HidDevice.GetBooleanControlDescriptions(HidReportType, UInt16, UInt16) Metode

Definisi

Mengambil deskripsi kontrol boolean untuk perangkat HID yang diberikan.

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)

Parameter

reportType
HidReportType

Menentukan jenis laporan yang deskripsi kontrolnya diminta.

usagePage
UInt16

unsigned short

uint16_t

Mengidentifikasi halaman penggunaan yang terkait dengan kontrol.

Nilai 0 diperlakukan sebagai kartubebas untuk semua halaman penggunaan.

usageId
UInt16

unsigned short

uint16_t

Mengidentifikasi penggunaan yang terkait dengan kontrol.

Nilai 0 diperlakukan sebagai wild card untuk semua ID penggunaan.

Mengembalikan

Vektor objek HidBooleanControlDescription .

Keterangan

Kontrol Boolean adalah kontrol sederhana yang mengembalikan nilai Aktif/Nonaktif. (Terkadang disebut sebagai kontrol tombol.)

Berlaku untuk

Lihat juga