mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
Don't hang testjoystick if we failed to open the device in the first place.
This commit is contained in:
@@ -237,6 +237,7 @@ main(int argc, char *argv[])
|
||||
if (joystick == NULL) {
|
||||
if ( !reportederror ) {
|
||||
printf("Couldn't open joystick %d: %s\n", atoi(argv[1]), SDL_GetError());
|
||||
keepGoing = SDL_FALSE;
|
||||
reportederror = SDL_TRUE;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user