diff src/joystick/linux/SDL_sysjoystick.c @ 4114:fc27f3e8eee4 SDL-1.2

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:16:35 +0000
parents 746aa4852f87
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/joystick/linux/SDL_sysjoystick.c	Sat Dec 29 06:08:17 2007 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Sat Dec 29 06:16:35 2007 +0000
@@ -473,8 +473,7 @@
 					dev_nums[numjoysticks] = sb.st_rdev;
 					++numjoysticks;
 				}
-			} else
-				break;
+			}
 		}
 
 #if SDL_INPUT_LINUXEV