SDL_HINT_JOY...RELATE_XINPUT(3)
π NAME π
SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT β okay so bestie, this is the variable that decides whether the RAWINPUT driver should go grab correlated data from XInput. Yes, they're talking to each other. It's giving collaborative. π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"
That #define is literally just the string, character for character, no cap. π
π DESCRIPTION π
So the variable can be set to these values, and you're gonna want to pick one:
"0"β RAWINPUT driver will only use data from raw input APIs. Nothing else, no side quests, it stays in its lane. π¦"1"β RAWINPUT driver will also pull data from XInput andWindows.Gaming.Input, which gives you better trigger axes, guide button presses, and rumble support for Xbox controllers. πβ¨ And yeah β this is the default. The main character option, honestly.
πΈ Important vibe check: this hint should be set before a gamepad is opened. Like, set it early, bestie. Timing matters. Don't come in late and expect it to work, because it will not. π
π AVAILABILITY π
This hint is available since SDL 3.2.0. It's not ancient lore, it's a newer era. π§
Anyway, that's the whole page β Simple Directmedia Layer, SDL 3.4.18, from the SDL3 FUNCTIONS manual. Slay, go correlate your inputs, ily, 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