Returns a new Quartz mouse event.
- macOS 10.4+
- Mac Catalyst 13.0+
- Core Graphics
An event source taken from another event, or
A mouse event type. Pass one of the constants listed in
The position of the mouse cursor in global coordinates.
The button that’s changing state. Pass one of the constants listed in
CGMouse. This parameter is ignored unless the
CGEvent Other Mouse Down
CGEvent Other Mouse Dragged
CGEvent Other Mouse Up
A new mouse event, or
NULL if the event could not be created. When you no longer need the event, you should release it using the function