SDL_HAPTIC_GAIN(3)
π SDL_HAPTIC_GAIN π
ok bestie, quick lil page from the SDL3 FUNCTIONS section of the manual, and it's short but it's mighty. let's go π«Ά
β¨ NAME β¨
SDL_HAPTIC_GAIN β device can set global gain. that's the whole vibe. the device can do the gain thing. slay.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_haptic.h>
#define SDL_HAPTIC_GAIN (1u<<16)
like, that's it. that's the whole thing. one include, one macro, no cap. π
π¦ DESCRIPTION π¦
so basically: the device supports setting the global gain. that's the flex. if you see this flag, your haptic device can do the global gain situation. it's giving capability. it's giving yes-i-can. π₯
π AVAILABILITY π
this macro has been here since SDL 3.2.0. not new new, but not ancient either. she's been around, she's established, she's iconic. π
π SEE ALSO π
SDL_SetHapticGain(3)β the actual function that does the setting. this macro is like the "yes you may" and that function is the "okay bet, doing it". they're a duo, fr fr. β¨
π«Ά tiny reminder bestie: this macro is just a capability flag. it tells you the device can set global gain β it doesn't set anything itself. go read SDL_SetHapticGain(3) for the actual doing. iykyk π
and that's the whole page!! brought to you by Simple Directmedia Layer, version SDL 3.4.18 β mwah, kisses, stan SDL, bye bestie πππ§
π¦ 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