Fixed wrong documentation in joystick implementation source.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 16 Jan 2015 23:07:10 +0100
changeset 9311a4b031e28de8
parent 9310 01f418c16580
child 9312 705bdbbb1f37
Fixed wrong documentation in joystick implementation source.
src/joystick/haiku/SDL_haikujoystick.cc
src/joystick/iphoneos/SDL_sysjoystick.m
src/joystick/psp/SDL_sysjoystick.c
src/joystick/windows/SDL_mmjoystick.c
src/joystick/windows/SDL_windowsjoystick.c
     1.1 --- a/src/joystick/haiku/SDL_haikujoystick.cc	Fri Jan 16 23:03:14 2015 +0100
     1.2 +++ b/src/joystick/haiku/SDL_haikujoystick.cc	Fri Jan 16 23:07:10 2015 +0100
     1.3 @@ -53,8 +53,7 @@
     1.4      static int SDL_SYS_numjoysticks = 0;
     1.5  
     1.6  /* Function to scan the system for joysticks.
     1.7 - * This function should set SDL_numjoysticks to the number of available
     1.8 - * joysticks.  Joystick 0 should be the system default joystick.
     1.9 + * Joystick 0 should be the system default joystick.
    1.10   * It should return 0, or -1 on an unrecoverable fatal error.
    1.11   */
    1.12      int SDL_SYS_JoystickInit(void)
     2.1 --- a/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jan 16 23:03:14 2015 +0100
     2.2 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jan 16 23:07:10 2015 +0100
     2.3 @@ -37,8 +37,7 @@
     2.4  static CMMotionManager *motionManager = nil;
     2.5  
     2.6  /* Function to scan the system for joysticks.
     2.7 - * This function should set SDL_numjoysticks to the number of available
     2.8 - * joysticks.  Joystick 0 should be the system default joystick.
     2.9 + * Joystick 0 should be the system default joystick.
    2.10   * It should return 0, or -1 on an unrecoverable fatal error.
    2.11   */
    2.12  int
     3.1 --- a/src/joystick/psp/SDL_sysjoystick.c	Fri Jan 16 23:03:14 2015 +0100
     3.2 +++ b/src/joystick/psp/SDL_sysjoystick.c	Fri Jan 16 23:07:10 2015 +0100
     3.3 @@ -97,16 +97,13 @@
     3.4  
     3.5  
     3.6  /* Function to scan the system for joysticks.
     3.7 - * This function should set SDL_numjoysticks to the number of available
     3.8 - * joysticks.  Joystick 0 should be the system default joystick.
     3.9 + * Joystick 0 should be the system default joystick.
    3.10   * It should return number of joysticks, or -1 on an unrecoverable fatal error.
    3.11   */
    3.12  int SDL_SYS_JoystickInit(void)
    3.13  {
    3.14      int i;
    3.15  
    3.16 -/*  SDL_numjoysticks = 1; */
    3.17 -
    3.18      /* Setup input */
    3.19      sceCtrlSetSamplingCycle(0);
    3.20      sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);
     4.1 --- a/src/joystick/windows/SDL_mmjoystick.c	Fri Jan 16 23:03:14 2015 +0100
     4.2 +++ b/src/joystick/windows/SDL_mmjoystick.c	Fri Jan 16 23:07:10 2015 +0100
     4.3 @@ -143,8 +143,7 @@
     4.4  static int SDL_SYS_numjoysticks = 0;
     4.5  
     4.6  /* Function to scan the system for joysticks.
     4.7 - * This function should set SDL_numjoysticks to the number of available
     4.8 - * joysticks.  Joystick 0 should be the system default joystick.
     4.9 + * Joystick 0 should be the system default joystick.
    4.10   * It should return 0, or -1 on an unrecoverable fatal error.
    4.11   */
    4.12  int
     5.1 --- a/src/joystick/windows/SDL_windowsjoystick.c	Fri Jan 16 23:03:14 2015 +0100
     5.2 +++ b/src/joystick/windows/SDL_windowsjoystick.c	Fri Jan 16 23:07:10 2015 +0100
     5.3 @@ -278,8 +278,7 @@
     5.4  }
     5.5  
     5.6  /* Function to scan the system for joysticks.
     5.7 - * This function should set SDL_numjoysticks to the number of available
     5.8 - * joysticks.  Joystick 0 should be the system default joystick.
     5.9 + * Joystick 0 should be the system default joystick.
    5.10   * It should return 0, or -1 on an unrecoverable fatal error.
    5.11   */
    5.12  int