Instance Property

setElementDefault

Sets the default value of an element in a transaction.

Declaration

IOReturn (*setElementDefault)(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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software