src/joystick/linux/SDL_sysjoystick.c
changeset 2285 a5de28552be4
parent 2120 2c835d58faad
child 2489 96adc8025331
child 2698 e1da92da346c
child 2713 0906692aa6a4
equal deleted inserted replaced
2284:545fbf461c5b 2285:a5de28552be4
   491                 SDL_joylist[numjoysticks].fname = SDL_strdup(path);
   491                 SDL_joylist[numjoysticks].fname = SDL_strdup(path);
   492                 if (SDL_joylist[numjoysticks].fname) {
   492                 if (SDL_joylist[numjoysticks].fname) {
   493                     dev_nums[numjoysticks] = sb.st_rdev;
   493                     dev_nums[numjoysticks] = sb.st_rdev;
   494                     ++numjoysticks;
   494                     ++numjoysticks;
   495                 }
   495                 }
   496             } else
   496             }
   497                 break;
       
   498         }
   497         }
   499 
   498 
   500 #if SDL_INPUT_LINUXEV
   499 #if SDL_INPUT_LINUXEV
   501         /* This is a special case...
   500         /* This is a special case...
   502            If the event devices are valid then the joystick devices
   501            If the event devices are valid then the joystick devices