changeset 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 82dab719502e
children 63b57f6b6523
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: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