SDL_SetWindowsMessageHook

Function SDL_SetWindowsMessageHook 

Source
pub unsafe extern "C" fn SDL_SetWindowsMessageHook(
    callback: SDL_WindowsMessageHook,
    userdata: *mut c_void,
)
Expand description

Set a callback for every Windows message, run before TranslateMessage().

The callback may modify the message, and should return true if the message should continue to be processed, or false to prevent further processing.

§Parameters

  • callback: the SDL_WindowsMessageHook function to call.
  • userdata: a pointer to pass to every iteration of callback.

§Availability

This function is available since SDL 3.2.0.

§See also