Instance Property

getElementDefault

Obtains the default value of an element in a transaction.

Declaration

IOReturn (*getElementDefault)(void *self, IOHIDElementCookie elementCookie, IOHIDEventStruct *outValueEvent);

Parameters

elementCookie

The element of interest.

outValueEvent

The event that will be filled. If a long value is present, it is up to the caller to deallocate it.

Return Value

Returns an IOReturn code.

Discussion

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