public void TestMouseCursor() { var game = new DX11Game(); game.GameLoopEvent += delegate(DX11Game dx11Game) { if (game.Keyboard.IsKeyPressed(Key.F)) { game.Mouse.CursorEnabled = !game.Mouse.CursorEnabled; } if (game.Mouse.CursorEnabled) { game.AddToWindowTitle(game.Mouse.CursorPosition.ToString()); } }; game.Run(); }