SDL_HINT_GAM...EVICES_EXCEPT(3)

✨ NAME ✨

SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT β€” bestie, if you set this one, every single device gets skipped when we're scanning for game controllers… except the ones you list in this variable. it's giving VIP list energy πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_hints.h>

#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT"

🌸 DESCRIPTION 🌸

okay so the format of the string is a comma separated list of USB VID/PID pairs, in hexadecimal form, like:

0xAAAA/0xBBBB,0xCCCC/0xDDDD

and here's 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 it's not just a string, it's a string that can ✨summon a file✨ πŸ¦‹

This hint can be set anytime. no cap. πŸ”₯


πŸ‘‘ AVAILABILITY πŸ‘‘

This hint is available since SDL 3.2.0. periodt πŸ’–


k bye bestie, this page came to you courtesy of <strong>Simple Directmedia Layer</strong>, SDL <strong>3.4.18</strong> β€” go forth and whitelist your controllers, ily 🫢🌸

πŸ“¦ where this page comes from