Sets the keyboard event callback function.
[in] Pointer to a LPDXUTCALLBACKKEYBOARD keyboard event callback function. If supplied, the callback function will be called for keyboard events. If NULL, DXUT will not notify the application about keyboard events.
[in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL
No return value.
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 Windows WindowProc callback function.
Header: Declared in Dxut.h.