src/joystick/SDL_gamecontroller.c
changeset 6702 3262d73b843b
parent 6701 91160c9b35da
child 6708 1fa41febb331
equal deleted inserted replaced
6701:91160c9b35da 6702:3262d73b843b
   728 {
   728 {
   729     SDL_GameController *gamecontroller;
   729     SDL_GameController *gamecontroller;
   730 	SDL_GameController *gamecontrollerlist;
   730 	SDL_GameController *gamecontrollerlist;
   731 	ControllerMapping_t *pSupportedController = NULL;
   731 	ControllerMapping_t *pSupportedController = NULL;
   732 
   732 
   733 	int deviceMappingIndex = -1;
       
   734 
       
   735     if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
   733     if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
   736         SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
   734         SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
   737         return (NULL);
   735         return (NULL);
   738     }
   736     }
   739 
   737