Skip to content

Commit

Permalink
Fixed SDL_GameControllerOpen() and SDL_JoystickOpen() documentation i…
Browse files Browse the repository at this point in the history
…n header.
  • Loading branch information
philippwiesemann committed Apr 20, 2015
1 parent 83c088a commit 71c65b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/SDL_gamecontroller.h
Expand Up @@ -163,8 +163,9 @@ extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_
/**
* Open a game controller for use.
* The index passed as an argument refers to the N'th game controller on the system.
* This index is the value which will identify this controller in future controller
* events.
* This index is not the value which will identify this controller in future
* controller events. The joystick's instance id (::SDL_JoystickID) will be
* used there instead.
*
* \return A controller identifier, or NULL if an error occurred.
*/
Expand Down
5 changes: 3 additions & 2 deletions include/SDL_joystick.h
Expand Up @@ -88,8 +88,9 @@ extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
/**
* Open a joystick for use.
* The index passed as an argument refers to the N'th joystick on the system.
* This index is the value which will identify this joystick in future joystick
* events.
* This index is not the value which will identify this joystick in future
* joystick events. The joystick's instance id (::SDL_JoystickID) will be used
* there instead.
*
* \return A joystick identifier, or NULL if an error occurred.
*/
Expand Down

0 comments on commit 71c65b1

Please sign in to comment.