Instance Property

subtype

The event’s subtype.

Declaration

var subtype: NSEvent.EventSubtype { get }

Discussion

Raises an NSInternalInconsistencyException if accessed on an event that is not of type NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic. This property is also valid for mouse events. See Getting Unicode Values for the predefined mouse and tablet subtypes.

NSPeriodic events don’t use this property.

See Also

Getting the Event Type

var type: NSEvent.EventType

The event’s type.

enum NSEvent.EventType

Various types of events.

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.