![]() |
![]() |
![]() |
Sets the keyboard event callback function.
Syntax
VOID DXUTSetCallbackKeyboard(
LPDXUTCALLBACKKEYBOARD pCallbackKeyboard );
Parameters
- pCallbackKeyboard
- [in] Pointer to a LPDXUTCALLBACKKEYBOARD keyboard event callback function. If supplied, the callback function will be called for keyboard events.If NULL, the sample framework will not notify the application about keyboard events.
Return Value
No return value.
Remarks
The pCallbackKeyboard keyboard event 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 windows message pump, but does not preclude the application from handling those messages directly through the Microsoft Windows WindowProc
callback function.
Function Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Message Events, LPDXUTCALLBACKKEYBOARD, LPDXUTCALLBACKMOUSE, LPDXUTCALLBACKMSGPROC, DXUTSetCallbackMouse, DXUTSetCallbackMsgProc, WindowProc