SDL_HintCallback
A callback used to send notifications of hint value changes.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
A callback used to send notifications of hint value changes.
#include <SDL3/SDL_hints.h>
typedef void(SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
This is called an initial time during SDL_AddHintCallback with the hint's current value, and then again each time the hint's value changes.
This callback is fired from whatever thread is setting a new hint value. SDL holds a lock on the hint subsystem when calling this callback.
This datatype is available since SDL 3.2.0.