Set a user-defined function by which to transform relative mouse inputs.
Defined in <SDL3/SDL_mouse.h>
bool SDL_SetRelativeMouseTransform(SDL_MouseMotionTransformCallback callback, void *userdata);
SDL_MouseMotionTransformCallback | callback | a callback used to transform relative mouse motion, or NULL for default behavior. |
void * | userdata | a pointer that will be passed to callback . |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This overrides the relative system scale and relative speed scale hints. Should be called prior to enabling relative mouse mode, fails otherwise.
This function should only be called on the main thread.
This function is available since SDL 3.4.0.