Contents

HIDElement

A representation of an item from a report descriptor for a HID device.

Declaration

struct HIDElement

Mentioned in

Overview

A HIDElement is an abstraction for the data in a HID report, and represents one item of data that could be sent or received in a report for a specific device. For example, for a mouse with a report descriptor that declares a report with 1 byte of data for each an X and a Y coordinate, there would be an element for the data associated with the X coordinate. If this element was monitored by a HIDDeviceClient, when an input report was received with an update to the X coordinate, a notification with the updated data would be sent to HIDDeviceClient.Notification.elementUpdates(values:).

Elements are only received by requesting the elements for a specific device through a client’s elements property.

See the HID specification for more details: https://www.usb.org/hid.

Topics

Structures

Instance Properties

See Also

Interaction