SDL_HINT_JOY...ICES_EXCLUDED(3)

πŸ’– SDL_HINT_JOYSTICK_THROTTLE_DEVICES_EXCLUDED πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual β€” yes we're in SDL_HINT_JOY...ICES_EXCLUDED(3) territory and it's lowkey iconic πŸŽ€


✨ NAME ✨

SDL_HINT_JOYSTICK_THROTTLE_DEVICES_EXCLUDED β€” a variable containing a list of devices that are not throttle style controllers πŸš«πŸ•ΉοΈ


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_THROTTLE_DEVICES_EXCLUDED "SDL_JOYSTICK_THROTTLE_DEVICES_EXCLUDED"

✨ DESCRIPTION ✨

so like. this hint? it overrides SDL_HINT_JOYSTICK_THROTTLE_DEVICES and the built in device list. it's giving "we don't need your defaults, we have our own 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

and 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. yes fr fr, it'll read the file for you, no cap 🫢

this hint can be set anytime. literally whenever. main character scheduling energy ✨

✨ AVAILABILITY ✨

this hint is available since SDL 3.2.0. so if you're on something older... bestie. upgrade 😭


Simple Directmedia Layer πŸ¦‹ SDL 3.4.18 β€” that's the source and version right there, and this whole page lives at SDL_HINT_JOY...ICES_EXCLUDED(3). mwah, thanks for reading, go forth and exclude some throttles πŸ’œπŸ‘‘

πŸ“¦ where this page comes from