Fixed bug #497
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 06:17:31 +0000
changeset 2285 a5de28552be4
parent 2284 545fbf461c5b
child 2286 41a6675d8700
Fixed bug #497 Check all joysticks instead of stopping if one has been removed.
src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c	Sat Dec 29 06:09:25 2007 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Sat Dec 29 06:17:31 2007 +0000
@@ -493,8 +493,7 @@
                     dev_nums[numjoysticks] = sb.st_rdev;
                     ++numjoysticks;
                 }
-            } else
-                break;
+            }
         }
 
 #if SDL_INPUT_LINUXEV