enum CCL::KeyState::Flags

Overview

#include <guievent.h>

enum Flags
{
    kLButton      = 1 < <0,
    kMButton      = 1 < <1,
    kRButton      = 1 < <2,
    kMouseMask    = kLButton|kMButton|kRButton,
    kShift        = 1 < <3,
    kCommand      = 1 < <4,
    kOption       = 1 < <5,
    kControl      = 1 < <6,
    kModifierMask = kShift|kCommand|kOption|kControl,
    kRepeat       = 1 < <7,
    kPenBarrel    = 1 < <8,
    kPenEraser    = 1 < <9,
    kPenInverted  = 1 < <10,
    kPenMask      = kPenBarrel|kPenEraser|kPenInverted,
    kClick        = 1 < <16,
    kDrag         = 1 < <17,
    kDoubleClick  = 1 < <18,
    kSingleClick  = 1 < <19,
    kWheel        = 1 < <20,
    kGestureMask  = kDrag|kDoubleClick|kSingleClick|kWheel,
};

Detailed Documentation

Enum Values

kLButton

Left Mouse Button.

kMButton

Middle Mouse Button.

kRButton

Right Mouse Button.

kShift

[Shift]

kCommand

[Ctrl on Windows, Apple on MacOS]

kOption

[Alt on Windows, Option on MacOS]

kControl

[Control key on MacOS only)

kRepeat

flag for key repetition

kPenBarrel

pen barrel button

kPenEraser

pen eraser button

kPenInverted

pen is inverted (e.g. to function as eraser)

kClick

click (might be the beginning of a double-click)

kDrag

drag gesture

kDoubleClick

double-click gesture

kSingleClick

single-click (when a double-click did not happen)

kWheel

mouse wheel gesture