Value | Meaning |
---|---|
SHIFT_MASK1 | the Shift key. |
LOCK_MASK2 | a Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock). |
CONTROL_MASK4 | the Control key. |
ALT_MASK8 | the fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key). |
BUTTON1_MASK256 | the first mouse button. |
BUTTON2_MASK512 | the second mouse button. |
BUTTON3_MASK1024 | the third mouse button. |
BUTTON4_MASK2048 | the fourth mouse button. |
BUTTON5_MASK4096 | the fifth mouse button. |
SUPER_MASK67108864 | the Super modifier |
HYPER_MASK134217728 | the Hyper modifier |
META_MASK268435456 | the Meta modifier |
Flags to indicate the state of modifier keys and mouse buttons in events.
Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
Note that GDK may add internal values to events which include values outside of this enumeration. Your code should preserve and ignore them. You can use %GDK_MODIFIER_MASK to remove all private values.