Instance Property

setElementValue

Sets the value of an element in a transaction.

Declaration

IOReturn (*setElementValue)(void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *valueEvent);

Parameters

elementCookie

The element of interest.

valueEvent

The event that will be filled. If a long value is present, it will be copied.

Return Value

Returns an IOReturn code.

Discussion

An error will be returned if the element has not been added to the transaction.