commitElements
Gets or sets the contents of the interface’s stored elements.
Declaration
virtual kern_return_t commitElements(OSArray *elements, IOHIDElementCommitDirection direction);Parameters
- elements:
An array of Iohidelement objects.
- direction:
The direction in which to commit changes. Specify Kiohidelementcommitdirectionin to read the element data from the device. Specify Kiohidelementcommitdirectionout to write the element data to the device.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.