SDL_HINT_JOY...ICES_EXCLUDED(3)
๐ SDL_HINT_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED ๐
okay bestie so this one's a lil page from the SDL3 FUNCTIONS manual, and it's all about one very specific little hint. buckle up ๐
โจ NAME โจ
SDL_HINT_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED โ a variable that's literally just a whole list of devices that we know don't have a GameCube form factor. like, they're not cube-shaped. we're excluding them. periodt. ๐ซ๐ฎ
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED "SDL_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED"
yeah that's the whole thing. a #include and a #define. slay. ๐
๐ฆ DESCRIPTION ๐ฆ
so here's the tea: setting this hint overrides SDL_HINT_JOYSTICK_GAMECUBE_DEVICES and the built-in device list. like, it fully takes the wheel. ๐
the format? it's a comma separated list of USB VID/PID pairs, all in hexadecimal form, like this:
0xAAAA/0xBBBB,0xCCCC/0xDDDD
and โ plot twist โ the variable can also be written as "@file", and in that case the file you named gets loaded and read as if it were the value of the variable. cute, right? ๐โจ
you can set this hint anytime. no waiting around. no timing drama. iykyk. ๐
๐ AVAILABILITY ๐
this hint has been around since SDL 3.2.0. it's not new new, but it's not ancient either. it's giving established. ๐
and that's the whole page, bestie!! every single detail, no notes, no cap. ๐ซถ this icon of a hint comes to you from Simple Directmedia Layer, version SDL 3.4.18 โ go forth and exclude those non-GameCube devices, you absolute main character ๐โจ๐
๐ฆ 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