[Examples] Improved Mouse.GetState output

This commit is contained in:
thefiddler 2014-05-10 17:54:49 +02:00
parent 96aaef9b37
commit 2b16a641f0

View file

@ -323,21 +323,7 @@ namespace Examples.Tests
var state = OpenTK.Input.Mouse.GetState(i);
if (state.IsConnected)
{
StringBuilder sb = new StringBuilder();
Vector3 pos = new Vector3(state.X, state.Y, state.WheelPrecise);
sb.Append(i);
sb.Append(": ");
sb.Append(pos);
for (int button_index = 0; button_index < (int)MouseButton.LastButton; button_index++)
{
MouseButton b = (MouseButton)button_index;
if (state[b])
{
sb.Append(b);
sb.Append(" ");
}
}
DrawString(gfx, sb.ToString(), line++);
DrawString(gfx, state.ToString(), line++);
}
}
return line;