Enable GameInput v3 by default if it's available

GameInput is now the most functional Windows API for handling XInput controllers.
This commit is contained in:
Sam Lantinga
2026-05-14 10:18:58 -07:00
parent d57c3b685c
commit 2c4e6ed358
8 changed files with 77 additions and 12 deletions

View File

@@ -77,6 +77,11 @@ bool SDL_InitGameInput(IGameInput **ppGameInput)
return true;
}
bool SDL_GameInputReady(void)
{
return (g_pGameInput != NULL);
}
void SDL_QuitGameInput(void)
{
SDL_assert(g_nGameInputRefCount > 0);

View File

@@ -49,6 +49,7 @@ using namespace GameInput::v1;
#endif
extern bool SDL_InitGameInput(IGameInput **ppGameInput);
extern bool SDL_GameInputReady(void);
extern void SDL_QuitGameInput(void);
#endif // HAVE_GAMEINPUT_H