Fixed wrong documentation in joystick implementation source.

main
Philipp Wiesemann 2015-01-16 23:07:10 +01:00
parent 4b3f0d6ddb
commit 2b53ffc77c
5 changed files with 5 additions and 12 deletions

View File

@ -53,8 +53,7 @@ extern "C"
static int SDL_SYS_numjoysticks = 0; static int SDL_SYS_numjoysticks = 0;
/* Function to scan the system for joysticks. /* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available * Joystick 0 should be the system default joystick.
* joysticks. Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error. * It should return 0, or -1 on an unrecoverable fatal error.
*/ */
int SDL_SYS_JoystickInit(void) int SDL_SYS_JoystickInit(void)

View File

@ -37,8 +37,7 @@ const char *accelerometerName = "iOS accelerometer";
static CMMotionManager *motionManager = nil; static CMMotionManager *motionManager = nil;
/* Function to scan the system for joysticks. /* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available * Joystick 0 should be the system default joystick.
* joysticks. Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error. * It should return 0, or -1 on an unrecoverable fatal error.
*/ */
int int

View File

@ -97,16 +97,13 @@ int JoystickUpdate(void *data)
/* Function to scan the system for joysticks. /* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available * Joystick 0 should be the system default joystick.
* joysticks. Joystick 0 should be the system default joystick.
* It should return number of joysticks, or -1 on an unrecoverable fatal error. * It should return number of joysticks, or -1 on an unrecoverable fatal error.
*/ */
int SDL_SYS_JoystickInit(void) int SDL_SYS_JoystickInit(void)
{ {
int i; int i;
/* SDL_numjoysticks = 1; */
/* Setup input */ /* Setup input */
sceCtrlSetSamplingCycle(0); sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG); sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);

View File

@ -143,8 +143,7 @@ GetJoystickName(int index, const char *szRegKey)
static int SDL_SYS_numjoysticks = 0; static int SDL_SYS_numjoysticks = 0;
/* Function to scan the system for joysticks. /* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available * Joystick 0 should be the system default joystick.
* joysticks. Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error. * It should return 0, or -1 on an unrecoverable fatal error.
*/ */
int int

View File

@ -278,8 +278,7 @@ void SDL_SYS_AddJoystickDevice(JoyStick_DeviceData *device)
} }
/* Function to scan the system for joysticks. /* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available * Joystick 0 should be the system default joystick.
* joysticks. Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error. * It should return 0, or -1 on an unrecoverable fatal error.
*/ */
int int