diff 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
line wrap: on
line diff
--- 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