Obtains the most recent value of an element.
- macOS 10.0+
- Mac Catalyst 13.0+Beta
The element of interest.
The event that will be filled. If a long value is present, it is up to the caller to deallocate it.
Returns an IOReturn code.
This call is most useful for interrupt driven elements, such as input type elements. Since feature type element values need to be polled from the device, it is recommended to use the queryElementValue method to obtain the current value. The timestamp field in the event details the last time the element value was altered.