(This is the legacy documentation for SDL2, the previous stable version; SDL3 is the current stable version.)
A variable controlling whether the RAWINPUT driver should pull correlated data from XInput.
Defined in SDL_hints.h
Syntax
#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"
This variable can be set to the following values:
- "0": RAWINPUT driver will only use data from raw input APIs
- "1": RAWINPUT driver will also pull data from XInput, providing better trigger axes, guide button presses, and rumble support for Xbox controllers
The default is "1". This hint applies to any joysticks opened after setting the hint.
CategoryAPI, CategoryAPIMacro, CategoryHints