Function SDL_SetX11EventHook
pub unsafe extern "C" fn SDL_SetX11EventHook(
callback: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut _XEvent) -> bool>,
userdata: *mut c_void,
)
Available on crate feature
dep_sdl3
only.Expand description
Set a callback for every X11 event.
The callback may modify the event, and should return true if the event should continue to be processed, or false to prevent further processing.
§Parameters
callback
: theSDL_X11EventHook
function to call.userdata
: a pointer to pass to every iteration ofcallback
.
§Availability
This function is available since SDL 3.2.0.