SDL_HINT_JOY...PI_STEAM_HORI(3)
π SDL_HINT_JOYSTICK_HIDAPI_STEAM_HORI π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's a hint page and it's short but it's important, let's get into it π
β¨ NAME β¨
SDL_HINT_JOYSTICK_HIDAPI_STEAM_HORI β it's a variable that controls whether the HIDAPI driver for HORI licensed Steam controllers should be used or not. that's the whole vibe. no cap. π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_STEAM_HORI "SDL_JOYSTICK_HIDAPI_STEAM_HORI"
like yes, it's a #define, and yes, the string is literally the same name as the macro. iconic behavior honestly. π
π DESCRIPTION π
so this variable can be set to the following values, and there are exactly two of them, so no pressure:
"0"β the HIDAPI driver is not used. π"1"β the HIDAPI driver is used. π₯
the default is the value of SDL_HINT_JOYSTICK_HIDAPI. (so like, it inherits the vibe from its parent hint, very nepo baby of it, we respect it π«Ά)
β οΈ real talk though: this hint should be set before initializing joysticks and gamepads. set it late and it justβ¦ won't do the thing. the way that timing matters here is lowkey stressful π
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on something older, bestie, it's not there. upgrade time. β¨
mwah, that's the whole page, you ate that π this little gem lives in the Simple Directmedia Layer collection, version SDL 3.4.18, and yeah β it's from the SDL3 functions fam. go forth and hint responsibly, queen ππ
π¦ 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