menu
HidDevice
import { HidDevice } from "destack:device/binding";
HID device descriptor.
1export struct HidDevice {2 id: string;3 path: Path;4 name: string;5 bus: HidBus;6 vendorId: uint16;7 productId: uint16;8 manufacturer: string;9 product: string;10 serialNumber: string;11 usagePage: uint16;12 usage: uint16;13 maxInputReportBytes: uint32;14 maxOutputReportBytes: uint32;15 maxFeatureReportBytes: uint32;16 isConnected: boolean;17 isVirtual: boolean;18 isSystem: boolean;19}Members
id: stringStable HID device identifier.
path: PathHost device path when available.
name: stringHost-visible device name.
bus: HidBusHost bus kind.
vendorId: uint16Vendor identifier when available.
productId: uint16Product identifier when available.
manufacturer: stringManufacturer string when available.
product: stringProduct string when available.
serialNumber: stringSerial number when available.
usagePage: uint16Primary HID usage page when available.
usage: uint16Primary HID usage when available.
maxInputReportBytes: uint32Maximum input report length in bytes when known.
maxOutputReportBytes: uint32Maximum output report length in bytes when known.
maxFeatureReportBytes: uint32Maximum feature report length in bytes when known.
isConnected: booleanWhether this device is currently connected.
isVirtual: booleanWhether this device is virtual or emulated.
isSystem: booleanWhether this device is provided by the system stack.