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