SDL_HINT_JOY...WHEEL_DEVICES(3)

πŸ’– SDL_HINT_JOYSTICK_WHEEL_DEVICES πŸ’–

okay bestie, we're in the SDL3 FUNCTIONS section of the manual, and today's main character is a hint called SDL_HINT_JOYSTICK_WHEEL_DEVICES 🌸

✨ NAME ✨

SDL_HINT_JOYSTICK_WHEEL_DEVICES β€” a variable that holds a list of wheel style controllers 🎑 like, literally a whole roster of them.


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_WHEEL_DEVICES "SDL_JOYSTICK_WHEEL_DEVICES"

so you pull in the header, and the hint's actual string name is "SDL_JOYSTICK_WHEEL_DEVICES" β€” that's the key you'd use, iykyk πŸ”‘


✨ DESCRIPTION ✨

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

0xAAAA/0xBBBB,0xCCCC/0xDDDD

see the pattern? VID slash PID, comma, VID slash PID, no cap 🫢

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 typing the whole list out, you're just like "bestie, go read that file" πŸ“„βœ¨

this hint can be set anytime. no timing drama, no rules, just vibes πŸ’…

✨ AVAILABILITY ✨

this hint has been available since SDL 3.2.0 ⭐


and that's the whole page, periodt πŸ‘‘

Simple Directmedia Layer made this one, it's version SDL 3.4.18, and the page itself is SDL_HINT_JOY...WHEEL_DEVICES(3) β€” mwah, thanks for reading, love u, bye πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from