LPDXUTCALLBACKKEYBOARD
Microsoft DirectX 9.0 SDK Update (October 2004)

LPDXUTCALLBACKKEYBOARD Prototype


Application-defined keyboard event callback function, called by the sample framework.

Syntax

typedef VOID (CALLBACK *LPDXUTCALLBACKKEYBOARD)(      

    UINT nChar,     bool bKeyDown,     bool bAltDown );

Parameters

nChar
[in] Keyboard hotkey behavior flag. The application can define behaviors that occur in response to different virtual-key codes. See Virtual-Key Codes World Wide Web link.
bKeyDown
[in] TRUE if the uMsg parameter of LPDXUTCALLBACKMSGPROC is either WM_KEYDOWN World Wide Web link or WM_SYSKEYDOWN World Wide Web link. See Remarks.
bAltDown
[in] ALT key behavior flag. The application can define a behavior that occurs in response to the ALT key being pressed. See Remarks.

Return Value

No return value.

Remarks

This callback function will be called when any one of the following keyboard events occurs:

This callback mechanism is provided to simplify handling keyboard messages through the window's message pump, but the application may still handle keyboard messages directly through the Microsoft Windows WindowProc World Wide Web link callback function.

Prototype Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Message Events, DXUTSetCallbackKeyboard, DXUTSetCallbackMouse, DXUTSetCallbackMsgProc, LPDXUTCALLBACKMSGPROC, LPDXUTCALLBACKMOUSE, WindowProc World Wide Web link


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.