From fc81f302513c0638a2cb02ca83b40adc25e6b601 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 5 Jan 2014 21:32:24 +0100 Subject: [PATCH] [Examples] Draw device index for Joysticks and GamePads --- Source/Examples/OpenTK/Test/GameWindowStates.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Examples/OpenTK/Test/GameWindowStates.cs b/Source/Examples/OpenTK/Test/GameWindowStates.cs index aa9d27d2..b5bf17f1 100644 --- a/Source/Examples/OpenTK/Test/GameWindowStates.cs +++ b/Source/Examples/OpenTK/Test/GameWindowStates.cs @@ -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++); } }