A function definition to be used with SDL_SetWindowsMessageHook
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_GDK)
void *userdata, MSG *msg);
SDL_bool (*SDL_WindowsMessageHook)(#endif
userdata | the data passed by the original call to SDL_SetWindowsMessageHook |
msg | a pointer to a MSG structure |
This function may modify the message, and should return SDL_TRUE if the message should continue to be processed, or SDL_FALSE to prevent further processing.
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_GDK)
void *userdata, MSG *msg)
SDL_bool MyMessageHook(
{// do things with userdata and msg...
return SDL_TRUE; // let SDL continue processing the message
}
// ...
SDL_SetWindowsMessageHook(MyMessageHook, NULL);#endif
This definition is available since SDL 3.0.0.
CategoryDefine, CategorySystem