LPDXUTCALLBACKKEYBOARD
Application-defined keyboard event callback function, called by DXUT.
VOID LPDXUTCALLBACKKEYBOARD(
UINT nChar,
bool bKeyDown,
bool bAltDown,
void* pUserContext
);
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.
- 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
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 Windows WindowProc callback function.
Requirements
Header: Declared in Dxut.h.
See Also
DXUTSetCallbackKeyboard, DXUTSetCallbackMouse, DXUTSetCallbackMsgProc, LPDXUTCALLBACKMSGPROC, LPDXUTCALLBACKMOUSE, WindowProc