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.


    KeyCode As Integer, 
    Shift As Integer)



Specifies the key that was pressed.


Specifies whether the shift, control or ALT keys were pressed at the time the event was sent. See 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