SDL_HINT_JOY...TENDO_CLASSIC(3)

πŸ’– SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC πŸ’–

okay bestie so this is a page from the SDL3 FUNCTIONS manual, and it's about one single lil hint variable, but she's iconic and she matters. let's get into it ✨


🌸 NAME 🌸

SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC β€” a variable that controls whether the HIDAPI driver for Nintendo Online classic controllers should be used or not. that's it, that's the whole job. she's a yes/no girlie πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC "SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC"

yes the string literally matches the macro name, no notes, that's just how she is πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the variable can be set to the following values, and there are literally only two, so no excuses:

  • "0" β€” the HIDAPI driver is not used. she's sitting this one out πŸ™ˆ
  • "1" β€” the HIDAPI driver is used. main character energy, driver edition πŸ‘‘

and the default? the default is the value of SDL_HINT_JOYSTICK_HIDAPI. so if you never touch this one, she just copies her big sister's answer. lowkey a family thing fr fr 🫢

⚠️ okay this part actually matters: this hint should be set before initializing joysticks and gamepads. if you set it after, you're giving instructions to a party that already left. no cap. 😭

⭐ AVAILABILITY ⭐

this hint is available since SDL 3.2.0. so if you're on something older, this variable doesn't exist and you're just yelling into the void, bestie πŸ’€


and that's the whole page!! every flag, every value, every default, all of it, we ate and left no crumbs πŸ“πŸ§š

this was brought to you by the Simple Directmedia Layer girlies, manual edition SDL 3.4.18 β€” stay slay, go init your joysticks at the right time, and remember: set the hint first. mwah πŸ’œπŸŒˆ


πŸ“¦ where this page comes from