HidDevice.InputReportReceived | inputreportreceived event

Applies to Windows and Windows Phone

Establishes an event listener which handles input reports issued by the device.

Syntax


function onInputReportReceived(eventArgs) { /* Your code */ }
 
// addEventListener syntax
hidDevice.addEventListener("inputreportreceived", onInputReportReceived);
hidDevice.removeEventListener("inputreportreceived", onInputReportReceived);
 
- or -

hidDevice.oninputreportreceived = onInputReportReceived;


Event information

Delegate TypedEventHandler<HidDevice, HidInputReportReceivedEventArgs>

Remarks

This method waits for the device to interrupt the host when it has data to send. Internally, the HID WinRT API sends a IOCTL read request to a lower driver in the stack.

The IOCTL is translated by the HID minidriver into a protocol-specific request. For a USB device, the minidriver translates this into an INTERRUPT IN request. And, for an I2C device that is running over the Microsoft HID-I2C miniport driver, the minidriver will wait for the device to assert an interrupt.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.HumanInterfaceDevice
Windows::Devices::HumanInterfaceDevice [C++]

Metadata

Windows.winmd

See also

HidDevice

 

 

Show:
© 2014 Microsoft