Instance Method

tapPostEvent(_:)

Posts a Quartz event from an event tap into the event stream.

Declaration

func tapPostEvent(_ proxy: CGEventTapProxy?)

Parameters

proxy

A proxy that identifies the event tap posting the event. Your event tap callback function is passed this proxy when it is invoked.

event

The event to post.

Discussion

You can use this function to post a new event at the same point to which an event returned from an event tap callback function would be posted. The new event enters the system before the event returned by the callback enters the system. Events posted into the system will be seen by all taps placed after the tap posting the event.