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
data1data2otherEvent(with:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:)