Add a function to watch a particular hint.
Defined in <SDL3/SDL_hints.h>
name | the hint to watch |
callback | An SDL_HintCallback function that will be called when the hint value changes |
userdata | a pointer to pass to the callback function |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
It is NOT safe to call this function from two threads at once.
This function is available since SDL 3.0.0.