![]() |
![]() |
![]() |
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
.
- bKeyDown
- [in] TRUE if the uMsg parameter of LPDXUTCALLBACKMSGPROC is either WM_KEYDOWN
or WM_SYSKEYDOWN
. 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
callback function.
Prototype Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Message Events, DXUTSetCallbackKeyboard, DXUTSetCallbackMouse, DXUTSetCallbackMsgProc, LPDXUTCALLBACKMSGPROC, LPDXUTCALLBACKMOUSE, WindowProc