public override void Update(GameTime gameTime) { base.Update(gameTime); //if( InputManager.AnyMouse ) //{ // SceneManager.Set( typeof( Loading ).Name ); //} uiManager.Update(gameTime); uiManager.AddLineBreak(); uiManager.SetDebugValue("Pointer handled", InputManager.PointerHandled); if (InputManager.Pressed(Keys.Left)) { menuPanel.Toggle(Edge.Left); } else if (InputManager.Pressed(Keys.Right)) { menuPanel.Toggle(Edge.Right); } if (InputManager.Pressed(Keys.Up)) { menuPanel.Toggle(Edge.Top); } if (InputManager.Pressed(Keys.Down)) { menuPanel.Toggle(Edge.Bottom); } if (InputManager.Pressed(Keys.F12)) { UIManager.DrawDebug = !UIManager.DrawDebug; } if (!InputManager.PointerHandled) { if (InputManager.Pressed(MouseButton.Right) || InputManager.Pressed(MouseButton.Left)) { //System.Console.WriteLine("Click"); cam.InitiateCursorMovement(); } else if (InputManager.Held(MouseButton.Right) || InputManager.Held(MouseButton.Left)) { cam.DoCursorMovement(); } } }