This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

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.


CategoryDefine, CategoryHints, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.