Fixed wrong documentation in joystick implementation source.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 16 Jan 2015 23:07:10 +0100
changeset 9311 a4b031e28de8
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
--- a/src/joystick/haiku/SDL_haikujoystick.cc	Fri Jan 16 23:03:14 2015 +0100
+++ b/src/joystick/haiku/SDL_haikujoystick.cc	Fri Jan 16 23:07:10 2015 +0100
@@ -53,8 +53,7 @@
     static int SDL_SYS_numjoysticks = 0;
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
+ * Joystick 0 should be the system default joystick.
  * It should return 0, or -1 on an unrecoverable fatal error.
  */
     int SDL_SYS_JoystickInit(void)
--- a/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jan 16 23:03:14 2015 +0100
+++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jan 16 23:07:10 2015 +0100
@@ -37,8 +37,7 @@
 static CMMotionManager *motionManager = nil;
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
+ * Joystick 0 should be the system default joystick.
  * It should return 0, or -1 on an unrecoverable fatal error.
  */
 int
--- a/src/joystick/psp/SDL_sysjoystick.c	Fri Jan 16 23:03:14 2015 +0100
+++ b/src/joystick/psp/SDL_sysjoystick.c	Fri Jan 16 23:07:10 2015 +0100
@@ -97,16 +97,13 @@
 
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
+ * Joystick 0 should be the system default joystick.
  * It should return number of joysticks, or -1 on an unrecoverable fatal error.
  */
 int SDL_SYS_JoystickInit(void)
 {
     int i;
 
-/*  SDL_numjoysticks = 1; */
-
     /* Setup input */
     sceCtrlSetSamplingCycle(0);
     sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);
--- a/src/joystick/windows/SDL_mmjoystick.c	Fri Jan 16 23:03:14 2015 +0100
+++ b/src/joystick/windows/SDL_mmjoystick.c	Fri Jan 16 23:07:10 2015 +0100
@@ -143,8 +143,7 @@
 static int SDL_SYS_numjoysticks = 0;
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
+ * Joystick 0 should be the system default joystick.
  * It should return 0, or -1 on an unrecoverable fatal error.
  */
 int
--- a/src/joystick/windows/SDL_windowsjoystick.c	Fri Jan 16 23:03:14 2015 +0100
+++ b/src/joystick/windows/SDL_windowsjoystick.c	Fri Jan 16 23:07:10 2015 +0100
@@ -278,8 +278,7 @@
 }
 
 /* Function to scan the system for joysticks.
- * This function should set SDL_numjoysticks to the number of available
- * joysticks.  Joystick 0 should be the system default joystick.
+ * Joystick 0 should be the system default joystick.
  * It should return 0, or -1 on an unrecoverable fatal error.
  */
 int