Microsoft DirectX 9.0

KeyDown Event

This topic applies to Windows XP only.

The KeyDown event is called by the MSVidCtl object when the user presses a key.

Syntax

object_KeyDown(
    KeyCode As Integer, 
    Shift As Integer)

Parameters

  KeyCode

Specifies the key that was pressed.

  Shift

Specifies whether the shift, control or ALT keys were pressed at the time the event was sent. See Remarks.

Remarks

The Shift parameter may have the following values:

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

See Also