GR_KEYMOD

Name

GR_KEYMOD -- Keyboard modifier key codes

Synopsis

typedef unsigned int GR_KEYMOD;
  

Description

A GR_KEYMOD type is a bitwise OR combination of one or more of the following flags. The set flags indicate keyboard modifier keys that are being pressed.

Table 3-1. Modifier Key Codes

ValueDescription
MWKMOD_NONEIndicates no modifier keys are pressed.
MWKMOD_LSHIFTIndicates the left Shift key.
MWKMOD_RSHIFTIndicates the right Shift key.
MWKMOD_SHIFTBitwise OR of the left and right Shift keys.
MWKMOD_LCTRLIndicates the left Ctrl key.
MWKMOD_RCTRLIndicates the right Ctrl key.
MWKMOD_CTRLBit wise OR of the left and right Ctrl keys.
MWKMOD_LALTIndicates the left Alt key.
MWKMOD_RALTIndicates the right Alt key.
MWKMOD_ALTBitwise OR if the left and right Alt key.
MWKMOD_LMETAIndicates the left window key.
MWKMOD_RMETAIndicates the right window key.
MWKMOD_METABitwise OR of the left and right window keys.
MWKMOD_NUMIndicates the Num Lock key.
MWKMOD_CAPSIndicates theCaps Lock key.
MWKMOD_ALTGRIndicates the AltGr key.

See Also

GR_KEY, GR_EVENT_BUTTON, GR_EVENT_KEYSTROKE, GR_EVENT_MOUSE.