Fixed testgamecontroller output to make sense.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 28 Aug 2013 00:07:02 -0400
changeset 7705e70dc8b38f26
parent 7704 3182291fc65f
child 7706 8cc29a668223
Fixed testgamecontroller output to make sense.
test/testgamecontroller.c
     1.1 --- a/test/testgamecontroller.c	Wed Aug 28 12:43:29 2013 -0300
     1.2 +++ b/test/testgamecontroller.c	Wed Aug 28 00:07:02 2013 -0400
     1.3 @@ -229,7 +229,7 @@
     1.4      /* Print information about the controller */
     1.5      for (i = 0; i < SDL_NumJoysticks(); ++i) {
     1.6          const char *name;
     1.7 -        const char *description = "Joystick (not recognized as game controller)";
     1.8 +        const char *description;
     1.9  
    1.10          SDL_JoystickGetGUIDString(SDL_JoystickGetDeviceGUID(i),
    1.11                                    guid, sizeof (guid));
    1.12 @@ -238,8 +238,10 @@
    1.13          {
    1.14              nController++;
    1.15              name = SDL_GameControllerNameForIndex(i);
    1.16 +            description = "Controller";
    1.17          } else {
    1.18              name = SDL_JoystickNameForIndex(i);
    1.19 +            description = "Joystick";
    1.20          }
    1.21          SDL_Log("%s %d: %s (guid %s)\n", description, i, name ? name : "Unknown", guid);
    1.22      }