Enumeration

CGEventType

Constants that specify the different types of input events.

Declaration

enum CGEventType : UInt32

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

case null

Specifies a null event.

case leftMouseDown

Specifies a mouse down event with the left button.

case leftMouseUp

Specifies a mouse up event with the left button.

case rightMouseDown

Specifies a mouse down event with the right button.

case rightMouseUp

Specifies a mouse up event with the right button.

case mouseMoved

Specifies a mouse moved event.

case leftMouseDragged

Specifies a mouse drag event with the left button down.

case rightMouseDragged

Specifies a mouse drag event with the right button down.

case keyDown

Specifies a key down event.

case keyUp

Specifies a key up event.

case flagsChanged

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

case scrollWheel

Specifies a scroll wheel moved event.

case tabletPointer

Specifies a tablet pointer event.

case tabletProximity

Specifies a tablet proximity event.

case otherMouseDown

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

case otherMouseUp

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

case otherMouseDragged

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

case tapDisabledByTimeout

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

case tapDisabledByUserInput

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