Add SDL_HINT_DIRECTINPUT_ENABLED (on by default)

This commit is contained in:
Jade Macho
2022-06-28 21:03:16 +02:00
committed by Sam Lantinga
parent db7dfece16
commit 6a2e6c82a0
3 changed files with 26 additions and 0 deletions

View File

@@ -2001,6 +2001,15 @@ extern "C" {
*/
#define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
/**
* \brief A variable that lets you disable the detection and use of DirectInput gamepad devices
*
* The variable can be set to the following values:
* "0" - Disable DirectInput detection (only uses XInput)
* "1" - Enable DirectInput detection (the default)
*/
#define SDL_HINT_DIRECTINPUT_ENABLED "SDL_DIRECTINPUT_ENABLED"
/**
* \brief A variable that causes SDL to use the old axis and button mapping for XInput devices.
*