Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4113:82dab719502e | 4114:fc27f3e8eee4 |
---|---|
471 SDL_joylist[numjoysticks].fname = SDL_strdup(path); | 471 SDL_joylist[numjoysticks].fname = SDL_strdup(path); |
472 if ( SDL_joylist[numjoysticks].fname ) { | 472 if ( SDL_joylist[numjoysticks].fname ) { |
473 dev_nums[numjoysticks] = sb.st_rdev; | 473 dev_nums[numjoysticks] = sb.st_rdev; |
474 ++numjoysticks; | 474 ++numjoysticks; |
475 } | 475 } |
476 } else | 476 } |
477 break; | |
478 } | 477 } |
479 | 478 |
480 #if SDL_INPUT_LINUXEV | 479 #if SDL_INPUT_LINUXEV |
481 /* This is a special case... | 480 /* This is a special case... |
482 If the event devices are valid then the joystick devices | 481 If the event devices are valid then the joystick devices |