src/joystick/iphoneos/SDL_sysjoystick.m
changeset 6698 28ab2ef7bfc9
parent 6693 3c98e4ec2180
child 6707 70eeb7e3ec2f
equal deleted inserted replaced
6697:dbda91031456 6698:28ab2ef7bfc9
    66 		joystick->nhats = 0;
    66 		joystick->nhats = 0;
    67 		joystick->nballs = 0;
    67 		joystick->nballs = 0;
    68 		joystick->nbuttons = 0;
    68 		joystick->nbuttons = 0;
    69 		[[SDLUIAccelerationDelegate sharedDelegate] startup];
    69 		[[SDLUIAccelerationDelegate sharedDelegate] startup];
    70 		return 0;
    70 		return 0;
    71 	}
    71 	} else {
    72 	else {
       
    73 		SDL_SetError("No joystick available with that index");
    72 		SDL_SetError("No joystick available with that index");
    74 		return (-1);
    73 		return (-1);
    75 	}
    74 	}
    76 	
       
    77 }
    75 }
    78 
    76 
    79 /* Function to update the state of a joystick - called as a device poll.
    77 /* Function to update the state of a joystick - called as a device poll.
    80  * This function shouldn't update the joystick structure directly,
    78  * This function shouldn't update the joystick structure directly,
    81  * but instead should call SDL_PrivateJoystick*() to deliver events
    79  * but instead should call SDL_PrivateJoystick*() to deliver events