DXUTSetCallbackKeyboard

Sets the keyboard event callback function.

VOID DXUTSetCallbackKeyboard(LPDXUTCALLBACKKEYBOARDpCallbackKeyboard,void*pUserContext);

Parameters

  • pCallbackKeyboard
    [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.
  • pUserContext
    [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

Return Values

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 Windows WindowProc callback function.

Requirements

Header: Declared in Dxut.h.

See Also

LPDXUTCALLBACKKEYBOARD, LPDXUTCALLBACKMOUSE, LPDXUTCALLBACKMSGPROC, DXUTSetCallbackMouse, DXUTSetCallbackMsgProc, WindowProc