SDL_XINPUT_Enabled() returns false until XInput DLL is successfully loaded

We make sure we initialize XInput first, so that anything checking whether it's enabled gets a valid result based on whether we were able to load it or not.
This commit is contained in:
Sam Lantinga
2024-09-06 11:19:19 -07:00
parent 6da97c63da
commit 8f46cb771c
3 changed files with 5 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ extern "C" {
/*
* Internal stuff.
*/
static bool s_bXInputEnabled = true;
static bool s_bXInputEnabled = false;
bool SDL_XINPUT_Enabled(void)
{