Enumeration

CGEventType

Constants that specify the different types of input events.

Declaration

typedef enum CGEventType : uint32_t {
    ...
} CGEventType;

Overview

These constants are used:

Note that tablet devices may generate mouse events with embedded tablet data, or tablet pointer and proximity events. Tablet mouse events allow tablets to be used with applications that are not tablet-aware.

Topics

Constants

kCGEventNull

Specifies a null event.

kCGEventLeftMouseDown

Specifies a mouse down event with the left button.

kCGEventLeftMouseUp

Specifies a mouse up event with the left button.

kCGEventRightMouseDown

Specifies a mouse down event with the right button.

kCGEventRightMouseUp

Specifies a mouse up event with the right button.

kCGEventMouseMoved

Specifies a mouse moved event.

kCGEventLeftMouseDragged

Specifies a mouse drag event with the left button down.

kCGEventRightMouseDragged

Specifies a mouse drag event with the right button down.

kCGEventKeyDown

Specifies a key down event.

kCGEventKeyUp

Specifies a key up event.

kCGEventFlagsChanged

Specifies a key changed event for a modifier or status key.

kCGEventScrollWheel

Specifies a scroll wheel moved event.

kCGEventTabletPointer

Specifies a tablet pointer event.

kCGEventTabletProximity

Specifies a tablet proximity event.

kCGEventOtherMouseDown

Specifies a mouse down event with one of buttons 2-31.

kCGEventOtherMouseUp

Specifies a mouse up event with one of buttons 2-31.

kCGEventOtherMouseDragged

Specifies a mouse drag event with one of buttons 2-31 down.

kCGEventTapDisabledByTimeout

Specifies an event indicating the event tap is disabled because of timeout.

kCGEventTapDisabledByUserInput

Specifies an event indicating the event tap is disabled because of user input.