Contents

subtype

The event’s subtype.

Declaration

var subtype: NSEvent.EventSubtype { get }

Discussion

Access this property only if the event is a mouse event or if the type property contains NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic. If you access this property for other types, AppKit raises internalInconsistencyException. For information about predefined mouse and tablet subtypes, see Getting Unicode Values.

NSPeriodic events don’t use this property.

See Also

Related Documentation

Getting the event type