Mercurial > sdl-ios-xcode
changeset 2201:6280c111ee80
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 15 Jul 2007 21:53:51 +0000 |
parents | 893c862eed86 |
children | 98e76ba7d5a4 |
files | test/testjoystick.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testjoystick.c Sun Jul 15 17:25:59 2007 +0000 +++ b/test/testjoystick.c Sun Jul 15 21:53:51 2007 +0000 @@ -157,10 +157,11 @@ printf("There are %d joysticks attached\n", SDL_NumJoysticks()); for (i = 0; i < SDL_NumJoysticks(); ++i) { name = SDL_JoystickName(i); - printf("Joystick %d: %s\n",i,name ? name : "Unknown Joystick"); + printf("Joystick %d: %s\n", i, name ? name : "Unknown Joystick"); joystick = SDL_JoystickOpen(i); if (joystick == NULL) { - fprintf(stderr, "SDL_JoystickOpen(%d) failed: %s\n", i, SDL_GetError()); + fprintf(stderr, "SDL_JoystickOpen(%d) failed: %s\n", i, + SDL_GetError()); } else { printf(" axes: %d\n", SDL_JoystickNumAxes(joystick)); printf(" balls: %d\n", SDL_JoystickNumBalls(joystick));