Communicating with the Device
Communicating with a HID device is done with up to three kinds of reports: input reports, output reports, and feature reports.
Input Reports
Input reports contain data from the device. You can attach a handler to HidDevice
’s InputReportReceived
event to receive these reports. Each report is delivered as a HidInputReport
object that exposes, among other things, the raw Data
as an IBuffer
and a numeric Id
. At any time, independent of this event, you can call HidDevice
’s GetInputReportAsync
method with no parameters to retrieve the device’s default input report. You can also call an overload with a report ID to get a specific one.
Output Reports
Output reports are used to send data to the device. You create one with ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.