Generalized the XInput user index into a player index

This commit is contained in:
Sam Lantinga 2018-10-25 16:53:14 -07:00
parent 222a3ed235
commit 678ba78382
18 changed files with 138 additions and 18 deletions

View file

@ -1716,6 +1716,12 @@ SDL_GameControllerName(SDL_GameController * gamecontroller)
}
}
int
SDL_GameControllerGetPlayerIndex(SDL_GameController *gamecontroller)
{
return SDL_JoystickGetPlayerIndex(SDL_GameControllerGetJoystick(gamecontroller));
}
Uint16
SDL_GameControllerGetVendor(SDL_GameController * gamecontroller)
{