Enumeration

NSEvent.EventType

Topics

Event Types

case gesture

An event that represents a nonspecific type of gesture.

case magnify

An event representing a pinch open or pinch close gesture.

case swipe

An event representing a swipe gesture.

case rotate

An event representing a rotation gesture.

case beginGesture

An event that represents a gesture beginning.

case endGesture

An event that represents a gesture ending.

case smartMagnify

An event representing the smart zoom gesture.

case pressure

An event representing a change in pressure on a pressure-sensitive device (requires a 64-bit processor).

case quickLook

Supports the event responder method that initiates a Quicklook.

Enumeration Cases

See Also

Getting the Event Type

var type: NSEvent.EventType

The event’s type.

var subtype: NSEvent.EventSubtype

The event’s subtype.

enum NSEvent.EventSubtype

Subtypes for various types of events.

var modifierFlags: NSEvent.ModifierFlags

An integer bit field indicating the event’s modifier keys.

struct NSEvent.EventTypeMask

Constants that are masks for the events defined in NSEvent.EventType.