23.3 Key Status

The getkey, ungetkey, GetKey, and UngetKey functions use the following flags to determine whether a modifier key was also part of the input, for example the Right Shift key was held with the A key.

Flag

Value

Description

SHIFT_KEY_HELD

0x01

The Right Shift key was held down.

CTRL_KEY_HELD

0x04

Control key was held down.

ALT_KEY_HELD

0x08

Alt key was held down.

SCROLL_LOCK_IS_ON

0x10

Scroll Lock key was activated.

NUM_LOCK_IS_ON

0x20

Num Lock key was activated.

CAPS_LOCK_IS_ON

0x40

Caps Lock key was activated.