From 540cb5389c1e3470ad2a6eb16bab2f4cbe8e2547 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 28 Aug 2013 00:07:02 -0400 Subject: [PATCH] Fixed testgamecontroller output to make sense. --- test/testgamecontroller.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 419593dc4..cbdf8c3b1 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -229,7 +229,7 @@ main(int argc, char *argv[]) /* Print information about the controller */ for (i = 0; i < SDL_NumJoysticks(); ++i) { const char *name; - const char *description = "Joystick (not recognized as game controller)"; + const char *description; SDL_JoystickGetGUIDString(SDL_JoystickGetDeviceGUID(i), guid, sizeof (guid)); @@ -238,8 +238,10 @@ main(int argc, char *argv[]) { nController++; name = SDL_GameControllerNameForIndex(i); + description = "Controller"; } else { name = SDL_JoystickNameForIndex(i); + description = "Joystick"; } SDL_Log("%s %d: %s (guid %s)\n", description, i, name ? name : "Unknown", guid); }