SDL_HINT_JOY...KLIST_DEVICES(3)
π SDL_HINT_JOYSTICK_BLACKLIST_DEVICES π
okay so bestie, this is a page from the SDL3 FUNCTIONS manual (yes, the SDL3 girlies stay winning β¨) and it's all about SDL_HINT_JOYSTICK_BLACKLIST_DEVICES. Sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
SDL_HINT_JOYSTICK_BLACKLIST_DEVICES β a variable holding a list of devices that should not be considered joysticks. it's giving "not you, bestie, you're not a controller" π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_BLACKLIST_DEVICES "SDL_JOYSTICK_BLACKLIST_DEVICES"
that's the whole vibe. one include, one define, iconic π
π¦ DESCRIPTION π¦
so the format of this string is a comma separated list of USB VID/PID pairs, written in hexadecimal form. like, literally:
0xAAAA/0xBBBB,0xCCCC/0xDDDD
see how they're all comma-separated and slash-split? that's the whole thing. each pair is a vendor ID and a product ID, hex-coded, and SDL goes "yeah nope, not a joystick" π₯
and the plot twist: the variable can also take the form of "@file" β and in that case the named file gets loaded and interpreted as the value of the variable. so instead of cramming a giant list into one string, you point at a file and it eats that instead. main character energy, truly πβ¨
lowkey important: this hint can be set anytime. no waiting, no setup window, just go πβοΈπ¨
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on anything older, no cap, it's not there yet π
and that's the whole page, bestie β you ate this one fr fr π
this little love letter to the SDL3 FUNCTIONS manual came to you courtesy of Simple Directmedia Layer, running version SDL 3.4.18. stay slay, keep reading manpages, mwah ππ§
π¦ 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