Instance Property

type

The event’s type.

Declaration

var type: NSEvent.EventType { get }

Discussion

The possible values are described in NSEvent.EventType.

See Also

Getting the Event Type

enum NSEvent.EventType

The types of events handled by responder objects.

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 you use to filter out specific event types from the stream of incoming events.