Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Patched testjoystick.c to compile.

  • Loading branch information
icculus committed Dec 11, 2012
1 parent d6a0ade commit 812f5f9bc5a5215c6f84ab0f6949b20a064e465f
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/testjoystick.c
@@ -219,15 +219,15 @@ main(int argc, char *argv[])
fprintf(stderr, "SDL_JoystickOpen(%d) failed: %s\n", i,
SDL_GetError());
} else {
JoystickGUID guid = SDL_JoystickGetGUID(joystick);
char *guidstr = SDL_JoystickGetGUIDString(guid);
char guid[64];
SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joystick),
guid, sizeof (guid));
printf(" axes: %d\n", SDL_JoystickNumAxes(joystick));
printf(" balls: %d\n", SDL_JoystickNumBalls(joystick));
printf(" hats: %d\n", SDL_JoystickNumHats(joystick));
printf(" buttons: %d\n", SDL_JoystickNumButtons(joystick));
printf("instance id: %d\n", SDL_JoystickInstanceID(joystick));
printf(" guid: %s\n", guidstr);
SDL_free(guidstr);
printf(" guid: %s\n", guid);
SDL_JoystickClose(joystick);
}
}

0 comments on commit 812f5f9

Please sign in to comment.