SDL_SetWindowsMessageHook(3)

SDL_SetWindowsMessageHook3

Set a callback for every windows message, run before translatemessage().

Usage

#include "SDL3/SDL.h"

void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);

Header file

Defined in SDL3/SDL_system.h

Overview

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

Function 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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.