SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED(3)

πŸ’– SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED(3) πŸ’–

okay bestie, so this one lives in the SDL3 FUNCTIONS corner of the manual and it's literally all about telling SDL which controllers are not wheel-style. no cap. let's get into it πŸŽ€


✨ NAME ✨

SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED β€” a variable containing a list of devices that are not wheel style controllers πŸ›žπŸš«


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED "SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED"

like, that's the include and that's the define. iconic. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is: setting this hint will override SDL_HINT_JOYSTICK_WHEEL_DEVICES and the built in device list. highkey a takeover moment πŸ‘‘

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 bestie, plot twist β€” 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 you can keep your whole list in a lil file and just point at it. obsessed πŸ“

this hint can be set anytime. whenever. no rules. no timing drama. 🫢

🌈 AVAILABILITY 🌈

this hint is available since SDL 3.2.0. it's been around, it's established, it's giving veteran energy ⭐


and that's the whole page, bestie β€” go forth and exclude some non-wheel devices with confidence πŸ’œ

this cutie came to you from the Simple Directmedia Layer girlies, page version SDL 3.4.18. mwah, see you in the next manpage πŸ˜­πŸ’–βœ¨

πŸ“¦ where this page comes from