Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 2285:a5de28552be4
Fixed bug #497
Check all joysticks instead of stopping if one has been removed.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 06:17:31 +0000 |
parents | 2c835d58faad |
children | 96adc8025331 e1da92da346c 0906692aa6a4 |
comparison
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 |