(This is the legacy documentation for SDL2, the previous stable version; SDL3 is the current stable version.)
A variable that lets you disable the detection and use of DirectInput gamepad devices
Defined in SDL_hints.h
Syntax
#define SDL_HINT_DIRECTINPUT_ENABLED "SDL_DIRECTINPUT_ENABLED"
The variable can be set to the following values:
- "0": Disable DirectInput detection (only uses XInput)
- "1": Enable DirectInput detection (the default)
CategoryAPI, CategoryAPIMacro, CategoryHints