Microsoft DirectX 9.0


This topic applies to Windows XP only.

The KeyUp method is called when the user releases a key.


void KeyUp(
  short*  pKeyCode,
  short  Shift



Specifies the key code.


Specifies the shift state. See Remarks.

Return Values

This method does not return a value.


The Shift, Ctrl and ALT keys have the following values:

Value Meaning
1 The Shift key was pressed.
2 The Ctrl key was pressed.
4 The ALT key was pressed.

The value of the Shift parameter may also be any bitwise OR combination of these values.

The dispatch identifier (dispid) of this method is DISPID_KEYUP.

See Also