src/joystick/darwin/SDL_sysjoystick.c
changeset 6718 918ba414168b
parent 6707 70eeb7e3ec2f
child 6738 b408d5a406a3
equal deleted inserted replaced
6717:2acd95060548 6718:918ba414168b
   918  */
   918  */
   919 SDL_bool
   919 SDL_bool
   920 SDL_SYS_JoystickAttached(SDL_Joystick * joystick)
   920 SDL_SYS_JoystickAttached(SDL_Joystick * joystick)
   921 {
   921 {
   922 	recDevice *device = gpDeviceList;
   922 	recDevice *device = gpDeviceList;
   923     int index;
       
   924 	
   923 	
   925 	while ( device )
   924 	while ( device )
   926 	{
   925 	{
   927 		if ( joystick->instance_id == device->instance_id )
   926 		if ( joystick->instance_id == device->instance_id )
   928 			return SDL_TRUE;
   927 			return SDL_TRUE;