InterfaceMgr::GetShiftKey
Defined in:
Returns a boolean value indicating whether the Shift key is pressed.
C4Interface.h
Prototype
static bool GetShiftKey(void);
Description
The GetShiftKey
function returns true
if the Shift key is currently pressed and false
otherwise. No distinction is made between left and right Shift keys, and true
is returned if either is pressed.If a keyboard event is received, then it is not necessary to call the
GetShiftKey
function to determine whether the Shift key was pressed for that event. Instead, you should check the modifierKeys
field of the KeyboardEventData
structure and test for the kModifierKeyShift
flag.
See Also