|
⇤ ← Revision 1 as of 2014-02-15 22:20:18
Size: 1283
Comment: Created page using content from SDL_hints.h.
|
← Revision 2 as of 2019-02-04 11:43:18 ⇥
Size: 1223
Comment: Spcified that you need to set this hint before SDL_Init.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 9: | Line 9: |
| A hint that specifies if Xinput gamepad devices are detected. | A hint that specifies if Xinput gamepad devices are detected. Xinput is limited to 4 gamepads, if you want more than four you need to set it to "0". |
| Line 26: | Line 26: |
| You can add your code example here | SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "0"); //... SDL_Init(SDL_INIT_EVERYTHING); |
| Line 33: | Line 35: |
| ''You can add useful comments here'' ##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. |
You need to set this hint before you call [[SDL_Init]] otherwise it will not take effect. |
DRAFT |
SDL_HINT_XINPUT_ENABLED
A hint that specifies if Xinput gamepad devices are detected. Xinput is limited to 4 gamepads, if you want more than four you need to set it to "0".
Values
0 |
disable XInput detection (only uses direct input) |
1 |
enable XInput detection (the default) |
Default
By default Xinput gamepad devices are detected.
Code Examples
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "0");
//...
SDL_Init(SDL_INIT_EVERYTHING);
Remarks
You need to set this hint before you call SDL_Init otherwise it will not take effect.
