Skip to content
Browse files

[Examples] Draw device index for Joysticks and GamePads

  • Loading branch information...
1 parent 05af21e commit fc81f302513c0638a2cb02ca83b40adc25e6b601 @thefiddler thefiddler committed Jan 5, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Examples/OpenTK/Test/GameWindowStates.cs
View
4 Source/Examples/OpenTK/Test/GameWindowStates.cs
@@ -236,7 +236,7 @@ int DrawGamePads(Graphics gfx, int line)
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 @@ int DrawGamePads(Graphics gfx, int line)
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++);
}
}

0 comments on commit fc81f30

Please sign in to comment.
Something went wrong with that request. Please try again.