Instance Method

post(tap:)

Posts a Quartz event into the event stream at a specified location.

Declaration

func post(tap: CGEventTapLocation)

Parameters

tap

The location at which to post the event. Pass one of the constants listed in CGEventTapLocation.

event

The event to post.

Discussion

This function posts the specified event immediately before any event taps instantiated for that location, and the event passes through any such taps.