SDL_SetX11EventHook(3)

SDL_SetX11EventHook3

Set a callback for every x11 event.

Usage

#include "SDL3/SDL.h"

void SDL_SetX11EventHook(SDL_X11EventHook callback, void *userdata);

Header file

Defined in SDL3/SDL_system.h

Overview

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

Function parameters

callback

the SDL_X11EventHook
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.