DRAFT |
SDL_SetWindowsMessageHook
Use this function to set a function that is called for every windows message, before TranslateMessage().
Syntax
void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback,
void* userdata)
Function Parameters
callback |
the function to call for every message; see Remarks for details |
userdata |
a pointer that is passed to callback |
Code Examples
You can add your code example here
Remarks
This function is available on Microsoft Windows.
The function prototype for callback is:
void SDL_WindowsMessageHook(void* userdata,
void* hWnd,
unsigned int message,
Uint64 wParam,
Sint64 lParam)
- where its parameter is:
userdata
what was passed as userdata to SDL_SetWindowsMessageHook()
Version
This function is available since SDL 2.0.4.