Aller au contenu principal

Objet HIDDevice

  • deviceId string - Identifiant unique pour le périphérique.
  • name string - Nom du matériel.
  • vendorId Integer - Identifiant du vendeur du matériel.
  • productId Identifiant du périphérique.
  • serialNumber string (optionnel) - Le numéro de série du périphérique.
  • guid string (optionnel) - Identifiant de l'interface HID. Un matériel peut avoir plusieurs interfaces HID.
  • collections Object[] - un tableau de formats de rapport. Voir la documentation MDN pour en savoir plus.
    • 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.