public void Initialize(GameObjectManager gameObjectManager, MessageManager messageManager) { this.ProcessManager = new ProcessManager(); this.GameObjectManager = gameObjectManager; this.MessageManager = messageManager; this.SceneGraph = new SceneGraph(messageManager); _pointerInputHandler = new PointerInputHandler(this.MessageManager, this.SceneGraph); _keyboardInputHandler = new KeyboardInputHandler(this.MessageManager); _soundManager = new SoundManager(this.MessageManager); // Initialize with current state (so previous state from previous view (like a mouse click) doesn't trigger again here) _pointerInputHandler.Update(new GameTime()); _keyboardInputHandler.Update(new GameTime()); OnInitialize(); }