(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_HintCallback

Type definition of the hint callback function.

Header File

Defined in <SDL3/SDL_hints.h>

Syntax

typedef void (SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);

Function Parameters

userdata what was passed as userdata to SDL_AddHintCallback()
name what was passed as name to SDL_AddHintCallback()
oldValue the previous hint value
newValue the new value hint is to be set to

Version

This datatype is available since SDL 3.0.0.


CategoryAPI, CategoryAPIDatatype, CategoryHints