Contents

dispatchDigitizerStylusEvent

Dispatches a digitizer stylus event to the system.

Declaration

virtual kern_return_t dispatchDigitizerStylusEvent(uint64_t timeStamp, IOHIDDigitizerStylusData *stylusData);

Parameters

  • timeStamp:

    The timestamp of the event. Use the timestamp of the report element that is the source of the event.

  • stylusData:

    A structure containing the stylus data. For more information, see Iohiddigitizerstylusdata.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

Discussion

The default implementation of this method does nothing. Subclasses must override it to dispatch stylus events.

See Also

Dispatching Events