src/joystick/darwin/SDL_sysjoystick.c
changeset 9862 c3c3cdaf37f9
parent 9632 6ae6b0b46e78
child 9912 628225876708
equal deleted inserted replaced
9861:2117766ff8d2 9862:c3c3cdaf37f9
   463         while ( curdevice->pNext ) {
   463         while ( curdevice->pNext ) {
   464             ++device_index;
   464             ++device_index;
   465             curdevice = curdevice->pNext;
   465             curdevice = curdevice->pNext;
   466         }
   466         }
   467         curdevice->pNext = device;
   467         curdevice->pNext = device;
       
   468         ++device_index;  /* bump by one since we counted by pNext. */
   468     }
   469     }
   469 
   470 
   470 /* !!! FIXME: why isn't there an SDL_PrivateJoyDeviceAdded()? */
   471 /* !!! FIXME: why isn't there an SDL_PrivateJoyDeviceAdded()? */
   471 #if !SDL_EVENTS_DISABLED
   472 #if !SDL_EVENTS_DISABLED
   472     {
   473     {