[Examples] Draw device index for Joysticks and GamePads
authorthefiddler <stapostol@gmail.com>
Sun, 5 Jan 2014 20:32:24 +0000 (21:32 +0100)
committerthefiddler <stapostol@gmail.com>
Sun, 5 Jan 2014 20:32:24 +0000 (21:32 +0100)
Source/Examples/OpenTK/Test/GameWindowStates.cs

index aa9d27d..b5bf17f 100644 (file)
@@ -236,7 +236,7 @@ namespace Examples.Tests
                 GamePadState state = GamePad.GetState(i);
                 if (state.IsConnected)
                 {
-                    DrawString(gfx, caps.ToString(), line++);
+                    DrawString(gfx, String.Format("{0}: {1}", i, caps), line++);
                     DrawString(gfx, state.ToString(), line++);
                 }
             }
@@ -248,7 +248,7 @@ namespace Examples.Tests
                 JoystickState state = Joystick.GetState(i);
                 if (state.IsConnected)
                 {
-                    DrawString(gfx, caps.ToString(), line++);
+                    DrawString(gfx, String.Format("{0}: {1}", i, caps), line++);
                     DrawString(gfx, state.ToString(), line++);
                 }
             }