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