Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID().
--HG-- extra : amend_source : 110a5505509ddb9ecafed75abd89602986a99696
This commit is contained in:
parent
8e40963e20
commit
03cb578e6e
9 changed files with 67 additions and 0 deletions
|
@ -171,6 +171,11 @@ extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_
|
|||
*/
|
||||
extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerOpen(int joystick_index);
|
||||
|
||||
/**
|
||||
* Return the SDL_GameController associated with an instance id.
|
||||
*/
|
||||
extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromInstanceID(SDL_JoystickID joyid);
|
||||
|
||||
/**
|
||||
* Return the name for this currently opened controller
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue