discardEvents(matching:before:)
Forwards the message to the global application object.
Declaration
func discardEvents(matching mask: NSEvent.EventTypeMask, before lastEvent: NSEvent?)Parameters
- mask:
The mask of the events to discard.
- lastEvent:
The event up to which queued events are discarded from the queue.