update(with:)
Informs the feedback filter about a new event.
Declaration
func update(with event: NSEvent)Parameters
- event:
An event (Nsevent) to be filtered, which matches an event type returned by the Inputeventmask method.
Discussion
This method informs the feedback filter about a new event to be filtered, which matches an event type returned by the inputEventMask method. Call the updateWithEvent: method instead of update(withPanRecognizer:) if you are using a tracking loop controller for event tracking.