Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CGEventMBS class

Super class: CFObjectMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreGraphics Events MBS MacCF Plugin 17.4 Yes No No Yes, macOS only No
Function: The class for a CoreGraphics event.
Notes:
Subclass of the CFObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

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 for this class:


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


CGDisplayTransferFormulaMBS   -   CGEventTapMBS




Links
MBS Xojo blog