SDL_HINT_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED(3)
โจ NAME โจ
SDL_HINT_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED โ okay bestie, this is a variable holding a whole list of devices that should be considered joysticks. That's the whole vibe. It's a hint, it lives in SDL3's functions crew (iykyk), and it's here to tell SDL who's actually a controller. ๐ฎ๐
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED "SDL_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED"
No cap, that's literally the entire synopsis. One include, one define, we move. โจ
๐ DESCRIPTION ๐
So here's the tea, bestie: setting this hint overrides both SDL_HINT_JOYSTICK_BLACKLIST_DEVICES and the built in device list. Like, it doesn't play nice and merge with them โ it just takes over. Main character energy fr fr. ๐
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 instead of cramming your whole list into the string, you just point at a file and it slurps the contents like it's reading your notes app. ๐
This hint can be set anytime. Not a "before init only" situation โ anytime. Slay. ๐ฆ
โญ AVAILABILITY โญ
This hint has been available since SDL 3.2.0. Baby but iconic. ๐ผโจ
Okay that's the whole page, you ate that. ๐ This little gem comes to you from Simple Directmedia Layer, version SDL 3.4.18 โ so like, go forth and classify your devices correctly. ๐ซถ๐ No notes. Periodt. ๐
๐ฆ 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