SDL_HINT_JOY...HIDAPI_STADIA(3)

๐Ÿ’– SDL_HINT_JOYSTICK_HIDAPI_STADIA ๐Ÿ’–

okay bestie so you know how we're all out here living in the SDL3 FUNCTIONS manual? yeah. this is one of those pages. it's short, it's sweet, it's a whole vibe, and it's literally about one single thing. let's get into it ๐ŸŽ€


โœจ NAME โœจ

SDL_HINT_JOYSTICK_HIDAPI_STADIA โ€” a variable that controls whether the HIDAPI driver for Google Stadia controllers should be used ๐ŸŽฎ

like. that's the whole job. that's what she does. iconic behaviour honestly.


โœจ SYNOPSIS โœจ

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_HIDAPI_STADIA "SDL_JOYSTICK_HIDAPI_STADIA"

so you pull in the header, and the macro is the string. the macro name and the string are both SDL_JOYSTICK_HIDAPI_STADIA โ€” yes, exactly the same, no the SDL_HINT_ prefix is not in the string, don't come for me, that's just how it is ๐Ÿซถ


โœจ DESCRIPTION โœจ

the variable can be set to the following values, bestie, and there are literally only two:

  • "0" โ€” the HIDAPI driver is not used. nope. not today. ๐Ÿ™ˆ
  • "1" โ€” the HIDAPI driver is used. slay. let her cook. ๐Ÿ”ฅ

and the default? the default is the value of SDL_HINT_JOYSTICK_HIDAPI. so if you don't set this one, she just inherits from her mother hint. generational. ๐Ÿ’…


โœจ AVAILABILITY โœจ

this hint has been available since SDL 3.2.0 โญ

so if you're on something older, sorry babe, she's not there yet ๐Ÿ˜ญ


no cap: keep the strings as "0" and "1" โ€” quotes included, because they're strings, not numbers. don't try to be clever. โœจ

and that's the whole page!! short king energy. now go forth and Stadia ๐Ÿฆ‹

this lil gem comes to you from the Simple Directmedia Layer crew, living in SDL 3.4.18 โ€” mwah, thanks for reading, ily, see u in the next manpage ๐Ÿ’œ๐ŸŒธ๐ŸŽ€

๐Ÿ“ฆ where this page comes from