SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS(3)

🌸 NAME 🌸

okay bestie so <SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS> is a variable that controls whether your Nintendo Switch Joy-Con controllers will be in vertical mode when you're using the HIDAPI driver. that's it, that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS "SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS"

πŸŽ€ DESCRIPTION πŸŽ€

so like, this variable can be set to the following values, and you will pick one of them, no cap:

  • "0" β€” Left and right Joy-Con controllers will not be in vertical mode. this is the default, it's giving "we're being normal about this" πŸ™ˆ
  • "1" β€” Left and right Joy-Con controllers will be in vertical mode. go off, hold them however you want, main character energy πŸ‘‘
🫢 little heads up bestie: this hint should be set before opening a Joy-Con controller. set it early or the moment's gone, fr fr.

⭐ AVAILABILITY ⭐

This hint is available since SDL 3.2.0. so if you're on anything older, it's not there and we don't talk about it πŸ’€


okay that's the whole page, love that for us πŸ’– this was Simple Directmedia Layer's man page for SDL, SDL 3.4.18, and yes bestie we ate πŸ“πŸ§š no crumbs left, periodt πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from