SDL_HINT_MOU...E_WARP_MOTION(3)
β¨ SDL_HINT_MOUSE_RELATIVE_WARP_MOTION β¨
okay bestie, welcome to the SDL3 FUNCTIONS manual π this one's a hint, and she's a very specific little queen, so let's get into it.
π NAME π
SDL_HINT_MOUSE_RELATIVE_WARP_MOTION β a variable that controls whether a motion event should be generated for mouse warping while you're in relative mode. that's it, that's the whole job π«Ά
π¦ SYNOPSIS π¦
#include <SDL3/SDL_hints.h>
#define SDL_HINT_MOUSE_RELATIVE_WARP_MOTION "SDL_MOUSE_RELATIVE_WARP_MOTION"
πΈ DESCRIPTION πΈ
so the variable can be set to these values, and there are literally only two, no in-between, no grey area, she's decisive:
"0"β warping the mouse will NOT generate a motion event in relative mode π"1"β warping the mouse WILL generate a motion event in relative mode π₯
by default, warping the mouse will not generate motion events in relative mode. and ngl that default is doing you a solid, because it means your application doesn't have to sit there filtering out giant relative motion numbers that only exist because of the warping. lowkey a lifesaver π
this hint can be set anytime. no timing stress, no main-character scheduling drama, just set it whenever. β
π AVAILABILITY π
this hint has been available since SDL 3.2.0. so if you're on anything older, she's not there yet, sorry bestie π
and that's the whole page, periodt π go forth and warp responsibly.
this lil drop of wisdom came to you from Simple Directmedia Layer, version SDL 3.4.18, and yes she ate πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms