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
- 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