setEventForwardingMask(_:)
Sets the mask used to filter which types of events are forwarded from the view to the composition during rendering.
Declaration
func setEventForwardingMask(_ mask: Int)Parameters
- mask:
An event filtering mask. The mask can be a combination of any of the mask constants listed below, or the constant
NSAnyEventMask.Event
Description
NSLeftMouseDownMaskThe user pressed the left button.
NSLeftMouseDraggedMaskThe user moved the mouse with the left button down.
NSLeftMouseUpMaskThe user released the left button.
NSRightMouseDownMaskThe user pressed the right button.
NSRightMouseDraggedMaskThe user moved the mouse with the right button down.
NSRightMouseUpMaskThe user released the right button.
NSOtherMouseDownMaskThe user pressed the middle button, or some button other than the left or right button.
NSOtherMouseDraggedMaskThe user moved the mouse with the middle button down, or some button other than the left or right button.
NSOtherMouseUpMaskThe user released the middle button, or some button other than the left or right button.
NSMouseMovedMaskThe user moved the mouse without holding down a mouse button.
NSScrollWheelMaskThe user moved the mouse scroll wheel.
NSKeyDownMaskThe user generated a character or characters by pressing a key.
NSKeyUpMaskThe user released a key.
NSFlagsChangedMaskThe user pressed or released a modifier key, or toggled the Caps Lock key.