commit
Commits the element value to and from the device.
Declaration
virtual IOReturn commit(IOHIDElementCommitDirection direction);Parameters
- direction:
The direction to commit the element. 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.