SDL_HINT_JOY...BINE_JOY_CONS(3)
π NAME π
SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS β bestie, this is the variable that decides whether your Nintendo Switch Joy-Con controllers get combined into one single Pro-like controller when you're using the HIDAPI driver. like, do they become one iconic unit or stay two little guys? that's the whole vibe here π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS "SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS"
π DESCRIPTION π
okay so this variable can be set to the following values, and you literally just pick one:
"0"β Left and right Joy-Con controllers will not be combined, and each one will be a mini-gamepad. two separate little controllers, doing their own thing π¦"1"β Left and right Joy-Con controllers will be combined into a single controller. one controller, main character energy π (default)
β οΈ bestie listen β this hint should be set before initializing joysticks and gamepads. set it early or it's giving too late π
π AVAILABILITY π
This hint is available since SDL 3.2.0. periodt β¨
k that's the whole page, no cap π huge shoutout to Simple Directmedia Layer for making it happen β this page is living in SDL 3.4.18, so go forth and combine those Joy-Cons (or don't, your call, the "0" option is right there π«Ά). mwah π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms