Instance Property

getNextEvent

Reads next event from the queue.

Declaration

IOReturn (*getNextEvent)(void *self, IOHIDEventStruct *event, AbsoluteTime maxTime, uint32_t timeoutMS);

Parameters

event

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

maxTime

UNSUPPORTED. If non-zero, limits read events to those that occurred on or before maxTime.

timeoutMS

UNSUPPORTED. The timeout in milliseconds, a zero timeout will cause this call to be non-blocking (returning queue empty) if there is a NULL callback, and blocking forever until the queue is non-empty if there is a valid callback.

Return Value

Returns an IOReturn code.

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