SDL_HINT_MAC_SCROLL_MOMENTUM(3)
π SDL_HINT_MAC_SCROLL_MOMENTUM π
okay bestie, welcome to the SDL_HINT_MAC_SCROLL_MOMENTUM page, part of the SDL3 functions era, and no cap this one is short but iconic β¨
πΈ NAME πΈ
SDL_HINT_MAC_SCROLL_MOMENTUM β a variable controlling whether SDL_EVENT_MOUSE_WHEEL event values will have momentum on macOS. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_MAC_SCROLL_MOMENTUM "SDL_MAC_SCROLL_MOMENTUM"
like, that's the whole thing, she's a one-liner define and she's thriving π
π DESCRIPTION π
So the variable can be set to the following values, and you literally just pick one:
"0"β the mouse wheel events will have no momentum. this is the default, the chill one, the no-frills vibe π"1"β the mouse wheel events will have momentum. the main character energy option, the flick-and-glide π
β οΈ lowkey important: this hint needs to be set before SDL_Init(). if you set it after, it's giving too late bestie, the vibe check already happened π
π AVAILABILITY π
This hint is available since SDL 3.2.0. so if you're on something older, it's not her, she simply wasn't born yet π
and that's the whole page, fr fr π«Ά
sign-off time: this lil beauty lives in Simple Directmedia Layer, shipping as SDL 3.4.18, straight out of the SDL_HINT_MAC_SCROLL_MOMENTUM(3) manual. obsessed with her, periodt ππ
π¦ 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