HIDInputReportEvent

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The HIDInputReportEvent interface of the WebHID API is passed to HIDDevice.oninputreport when an input report is received from any associated HID device.

Description

Properties

HIDInputReportEvent.dataRead only

A DataView containing the data from the input report, excluding the reportId if the HID interface uses report IDs.

HIDInputReportEvent.deviceRead only

The HIDDevice instance that represents the HID interface that sent the input report.

HIDInputReportEvent.reportIdRead only

The one-byte identification prefix for this report, or 0 if the HID interface does not use report IDs.

Methods

This interface inherits methods from its parent, Event.

Specifications

Specification
WebHID API
# dom-hidinputreportevent

Browser compatibility

BCD tables only load in the browser