SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE(3)
π SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE π
okay bestie, this one lives in the SDL3 FUNCTIONS manual, and it's literally just a lil hint that decides whether your relative mouse motion gets run through the system's mouse acceleration curve. that's the whole vibe. π¦
β¨ NAME β¨
SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE β a variable controlling whether the system mouse acceleration curve is used for relative mouse motion. yes, it's a whole mouthful, but she's iconic for it. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"
π DESCRIPTION π
so you can set this variable to these values, no cap:
"0"β relative mouse motion will be unscaled. this is the default, the lil home base. π"1"β relative mouse motion will be scaled using the system mouse acceleration curve.
and here's the tea, bestie: if SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE is set, that will be applied after system speed scale. order matters, fr fr. π«Ά
good news though β this hint can be set anytime. no timing anxiety, no waiting for the right moment, she's flexible like that. β¨
not me casually reminding you that the default is unscaled so if you're expecting acceleration you're gonna be confused π
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on something older... bestie, it's giving ancient. π
Simple Directmedia Layer π¦ SDL 3.4.18 β mwah, that's the source and the version, and this lil page is SDL_HINT_MOUS..._SYSTEM_SCALE(3). thanks for coming to my ted talk, go scale some mice responsibly πβ¨
π¦ 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