logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_WindowsMessageHook - A callback to be used with SDL_SetWindowsMessageHook .

Availability

       This datatype is available since SDL 3.2.0.

Description

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

       As this is processing a message directly from the Windows event loop, this callback should do the minimum
       required work and return quickly.

Function Parameters

userdata
              the app-defined pointer provided to SDL_SetWindowsMessageHook .

       msg    a pointer to a Win32 event structure to process.

Header File

       Defined in SDL3/SDL_system.h

Name

       SDL_WindowsMessageHook - A callback to be used with SDL_SetWindowsMessageHook .

Return Value

       Returns true to let event continue on, false to drop it.

See Also

(3), SDL_SetWindowsMessageHook(3), (3), SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP(3)

Simple Directmedia Layer                           SDL 3.2.10                      SDL_WindowsMessageHook(3type)

Synopsis

#include"SDL3/SDL.h"typedefbool(SDLCALL*SDL_WindowsMessageHook)(void*userdata,MSG*msg);

Thread Safety

       This may only be called (by SDL) from the thread handling the Windows event loop.

See Also