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