mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-19 20:46:05 +00:00
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:
parent
d57c3b685c
commit
2c4e6ed358
8 changed files with 77 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue