info("eventtype")

The info(“eventtype”) function returns the type of the last event (mouse click, keyboard press, etc.).


Description

This function returns the type of the last event (mouse click, keyboard press, etc.). The event type is a number from the list below:

NSEventTypeLeftMouseDown = 1,
NSEventTypeLeftMouseUp = 2,
NSEventTypeRightMouseDown = 3,
NSEventTypeRightMouseUp = 4,
NSEventTypeMouseMoved = 5,
NSEventTypeLeftMouseDragged = 6,
NSEventTypeRightMouseDragged = 7,
NSEventTypeMouseEntered = 8,
NSEventTypeMouseExited = 9,
NSEventTypeKeyDown = 10,
NSEventTypeKeyUp = 11,
NSEventTypeFlagsChanged = 12,
NSEventTypeAppKitDefined = 13,
NSEventTypeSystemDefined = 14,
NSEventTypeApplicationDefined = 15,
NSEventTypePeriodic = 16,
NSEventTypeCursorUpdate = 17,
NSEventTypeScrollWheel = 22,
NSEventTypeTabletPoint = 23,
NSEventTypeTabletProximity = 24,
NSEventTypeOtherMouseDown = 25,
NSEventTypeOtherMouseUp = 26,
NSEventTypeOtherMouseDragged = 27,
NSEventTypeGesture = 29,
NSEventTypeMagnify = 30,
NSEventTypeSwipe = 31,
NSEventTypeRotate = 18,
NSEventTypeBeginGesture = 19,
NSEventTypeEndGesture = 20,
NSEventTypeSmartMagnify = 32,
NSEventTypeQuickLook = 33,
NSEventTypePressure = 34,
NSEventTypeDirectTouch = 37

Note: This is a list of all event types supported by macOS, most of these event types will never occur within Panorama.

Technical Detail: If an item is selected from a main menu, the event type will be 14 (NSEventTypeSystemDefined), not a mouse or keyboard related event.


See Also


History

VersionStatusNotes
10.2NewNew in this version.