Fixed testgamecontroller output to make sense.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 28 Aug 2013 00:07:02 -0400
changeset 7705 e70dc8b38f26
parent 7704 3182291fc65f
child 7706 8cc29a668223
Fixed testgamecontroller output to make sense.
test/testgamecontroller.c
--- a/test/testgamecontroller.c	Wed Aug 28 12:43:29 2013 -0300
+++ b/test/testgamecontroller.c	Wed Aug 28 00:07:02 2013 -0400
@@ -229,7 +229,7 @@
     /* 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 @@
         {
             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);
     }