changeset 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 545fbf461c5b
children 41a6675d8700
files src/joystick/linux/SDL_sysjoystick.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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