Platforms to show: All Mac Windows Linux Cross-Platform

CGEventMBS class

Super class: CFObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The class for a CoreGraphics event.

Subclass of the CFObjectMBS class.

Event Types

Constant Value Description
kCGEventFlagsChanged 12 Key flags changed, e.g. modifier keys pressed.
kCGEventKeyDown 10 Key Down
kCGEventKeyUp 11 Key up.
kCGEventLeftMouseDown 1 left mouse-down event
kCGEventLeftMouseDragged 6 left mouse-dragged event
kCGEventLeftMouseUp 2 left mouse-up event
kCGEventMouseMoved 5 mouse-moved event
kCGEventNull 0 The null event. (not defined)
kCGEventOtherMouseDown 25 other mouse-down event
kCGEventOtherMouseDragged 27 other mouse-dragged event
kCGEventOtherMouseUp 26 other mouse-up event
kCGEventRightMouseDown 3 right mouse-down event
kCGEventRightMouseDragged 7 right mouse-dragged event
kCGEventRightMouseUp 4 right mouse-up event
kCGEventScrollWheel 22 Scroll Wheel event.
kCGEventTabletPointer 23 Tablet pointer event.
kCGEventTabletProximity 24 Tablet Proximity event.
kCGEventTapDisabledByTimeout &hFFFFFFFE Out of band event types. These are delivered to the event tap callback to notify it of unusual conditions that disable the event tap.
kCGEventTapDisabledByUserInput &hFFFFFFFF Out of band event types. These are delivered to the event tap callback to notify it of unusual conditions that disable the event tap.

Mouse Buttons

Constant Value Description
kCGMouseButtonCenter 2 Center
kCGMouseButtonLeft 0 Left
kCGMouseButtonRight 1 Right

Scroll Event Units

Constant Value Description
kCGScrollEventUnitLine 1 Line
kCGScrollEventUnitPixel 0 Pixel

Super class CFObjectMBS

This class has no sub classes.

Some events using this class:

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS MacCF Plugin.


CGDisplayTransferFormulaMBS   -   CGEventSourceMBS


The biggest plugin in space...