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 |
Subclass of the CFObjectMBS class.
- 8 properties
- property EventSource as CGEventSourceMBS
- property Flags as Integer
- property Timestamp as UInt64
- property Type as Integer
- property UnicodeString as String
- property UnicodeStringLength as Integer
- property DoubleValueField(field as Integer) as Double
- property IntegerValueField(field as Integer) as Int64
- 2 methods
- method Constructor(Handle as Integer)
- method Copy as CGEventMBS
- shared method available as boolean
- 24 constants
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
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Blog Entries
Release notes
- Version 17.4
- Added CGEventMBS class.
Some events using this class:
- CGEventTapMBS.GotEvent(Proxy as Ptr, type as Integer, e as CGEventMBS) as CGEventMBS
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS MacCF Plugin.
CGDisplayTransferFormulaMBS - CGEventSourceMBS