瀏覽代碼

Fixed SDL_GameControllerOpen() and SDL_JoystickOpen() documentation in header.

Philipp Wiesemann 10 年之前
父節點
當前提交
71c65b1569
共有 2 個文件被更改,包括 6 次插入4 次删除
  1. 3 2
      include/SDL_gamecontroller.h
  2. 3 2
      include/SDL_joystick.h

+ 3 - 2
include/SDL_gamecontroller.h

@@ -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.
  */

+ 3 - 2
include/SDL_joystick.h

@@ -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.
  */