Carbon


Event Modifier Constants

Header: Events.h

enum {
    activeFlag = 1,
    btnState = 128,
    cmdKey = 256,
    shiftKey = 512,
    alphaLock = 1024,
    optionKey = 2048,
    controlKey = 4096,
    rightShiftKey = 8192,
    rightOptionKey = 16384,
    rightControlKey = 32768
};

Constant descriptions

activeFlag

The enumerator that indicates a window is being activated or that a mouse-down event caused a foreground switch.

btnState

The enumerator indicating that the mouse button has been released.

cmdKey

The enumerator indicating that the Command key is being pressed.

shiftKey

The enumerator indicating that the Shift key is being pressed.

alphaLock

The enumerator indicating that the Caps Lock key is being pressed.

optionKey

The enumerator indicating that the Option key is being pressed.

controlKey

The enumerator indicating that the Control key is being pressed.

rightShiftKey
rightOptionKey
rightControlKey

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)