メインコンテンツへ飛ぶ

HIDDevice オブジェクト

  • deviceId string - デバイスの一意な識別子。
  • name string - デバイス名。
  • vendorId Integer - USB 製造元 ID。
  • productId Integer - USB 製品 ID。
  • serialNumber string (任意) - USB デバイスのシリアル番号。
  • guid string (任意) - HID インターフェイスの一意な識別子。 デバイスによっては複数の HID インターフェースを保持することがあります。
  • collections Object[] - an array of report formats. See MDN documentation for more.
    • usage Integer - An integer representing the usage ID component of the HID usage associated with this collection.
    • usagePage Integer - An integer representing the usage page component of the HID usage associated with this collection.
    • type Integer - An 8-bit value representing the collection type, which describes a different relationship between the grouped items.
    • children Object[] - An array of sub-collections which takes the same format as a top-level collection.
    • inputReports Object[] - An array of inputReport items which represent individual input reports described in this collection.
    • outputReports Object[] - An array of outputReport items which represent individual output reports described in this collection.
    • featureReports Object[] - An array of featureReport items which represent individual feature reports described in this collection.