Skip to content

Commit

Permalink
Fixed wrong documentation in joystick implementation source.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jan 16, 2015
1 parent 4b3f0d6 commit 2b53ffc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/joystick/haiku/SDL_haikujoystick.cc
Expand Up @@ -53,8 +53,7 @@ extern "C"
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)
Expand Down
3 changes: 1 addition & 2 deletions src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/joystick/psp/SDL_sysjoystick.c
Expand Up @@ -97,16 +97,13 @@ int JoystickUpdate(void *data)


/* 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);
Expand Down
3 changes: 1 addition & 2 deletions src/joystick/windows/SDL_mmjoystick.c
Expand Up @@ -143,8 +143,7 @@ GetJoystickName(int index, const char *szRegKey)
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
Expand Down
3 changes: 1 addition & 2 deletions src/joystick/windows/SDL_windowsjoystick.c
Expand Up @@ -278,8 +278,7 @@ void SDL_SYS_AddJoystickDevice(JoyStick_DeviceData *device)
}

/* 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
Expand Down

0 comments on commit 2b53ffc

Please sign in to comment.