An object that contains parsed information from a HID input report.
- DriverKit 19.0+
IOHIDElement object contains details about a particular aspect of a HID-related input report. After receiving an input report from a HID device,
IOHIDInterface objects divide the report details into
IOHIDElement objects for easier management. You use these element objects to obtain details about the report, such as the current value reported by the device, how that value is meant to be used, and the minimum and maximum values. For example, a report from a mouse usually contains separate elements for the mouse's x and y positions.
You don't create
IOHIDElement objects directly. Instead, use the
get method of your
IOHIDInterface object to fetch the elements associated with the latest report. Each time you call that method, the corresponding object updates the element data using the most recent report.