Table of Contents

Class HIDInputReportEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The HIDInputReportEvent interface of the WebHID API is passed to HIDDevice.Inputreport event of HIDDevice when an input report is received from any associated HID device.
[Value("HIDInputReportEvent")]
public class HIDInputReportEvent : Event
Inheritance
HIDInputReportEvent
Inherited Members

Remarks

Constructors

HIDInputReportEvent()

public HIDInputReportEvent()

HIDInputReportEvent(string, HIDInputReportEventInit)

public HIDInputReportEvent(string type, HIDInputReportEventInit eventInitDict)

Parameters

type string
eventInitDict HIDInputReportEventInit

Properties

Data

NOTE
Experimental
The data property of the HIDInputReportEvent interface returns a {{jsxref("DataView")}} containing the data from the input report, excluding the reportId if the HID interface uses report IDs.
[Value("data")]
public DataView Data { get; }

Property Value

DataView

A DataView.

Remarks

Device

NOTE
Experimental
The device property of the HIDInputReportEvent interface returns the HIDDevice instance that represents the HID interface that sent the input report.
[Value("device")]
public HIDDevice Device { get; }

Property Value

HIDDevice

An HIDDevice.

Remarks

ReportId

NOTE
Experimental
The reportId property of the HIDInputReportEvent interface returns the one-byte identification prefix for this report, or 0 if the HID interface does not use report IDs.
[Value("reportId")]
public byte ReportId { get; }

Property Value

byte

A one-byte identification prefix.

Remarks