SDL_HINT_MOU...L_SPEED_SCALE(3)

🌸 NAME 🌸

SDL_HINT_MOUSE_NORMAL_SPEED_SCALE β€” bestie, this is the variable that sets the speed scale for mouse motion, in floating point, for when the mouse is not in relative mode. πŸ–±οΈβœ¨


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE "SDL_MOUSE_NORMAL_SPEED_SCALE"

Like, that's the whole thing. A #define and a string that's literally the same as the macro name. Iconic behaviour honestly. πŸ’…


πŸ’– DESCRIPTION πŸ’–

So here's the vibe: this hint can be set anytime. No waiting, no "gotta init first", no "oops wrong moment". Whenever you feel like it. Main character energy fr fr. πŸ¦‹


🌈 AVAILABILITY 🌈

This hint has been around since SDL 3.2.0. She's not new new, but she's not ancient either. Lowkey a queen. πŸ‘‘


🫢 reminder bestie: it's a speed scale, it's floating point, and it only matters when the mouse is not in relative mode. That's the whole tea. Don't overthink it.

signing off from the Simple Directmedia Layer crew, running the SDL 3.4.18 era of the SDL_HINT_MOUSE_NORMAL_SPEED_SCALE(3) page πŸ’œπŸŽ€ periodt ✨

πŸ“¦ where this page comes from