Instance Property


The event’s type.


var type: NSEvent.EventType { get }


The possible values are described in NSEvent.EventType.

See Also

Getting the Event Type

enum NSEvent.EventType

Various types of events.

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.