SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED(3)
π SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED(3) π
okay bestie, gather round, because today we're talking about a lil hint from the SDL3 functions family that lives in the joystick department. no cap, it's giving "who's NOT an arcade stick" energy. it's literally a variable containing a list of devices that are not arcade stick style controllers. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED "SDL_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED"
like yes, the macro name and the string are the same thing, that's just how SDL rolls. π
πΈ DESCRIPTION πΈ
so here's the tea: this hint overrides SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES and the built in device list. it's the "actually, not you" list. π
the format of the string is a comma separated list of USB VID/PID pairs in hexadecimal form, e.g.
0xAAAA/0xBBBB,0xCCCC/0xDDDD
the variable can also take the form of "@file", in which case the named file will be loaded and interpreted as the value of the variable. so you can keep your whole list in a file like the organized main character you are. πβ¨
this hint can be set anytime. no timing drama, no waiting around. π¦
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on something older, it's not you, it's the version. π
fr fr that's the whole page β every option, every format, every vibe preserved, zero facts harmed in the making of this group chat. π«Ά
this rewrite came to you from the Simple Directmedia Layer manual, SDL 3.4.18, page SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED(3). mwah, go plug in something that isn't an arcade stick. ππβ
π¦ 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