示例#1
0
 private void SimulateKeyPress(MockInputManager mockInputManager, UIContext uiContext, Keys key)
 {
     mockInputManager.SetKeysDown(key);
     ZComponent.NotifyListeners(uiContext);
     mockInputManager.SetKeysDown(null);
     ZComponent.NotifyListeners(uiContext);
 }
示例#2
0
        protected override void Update(GameTime gameTime)
        {
            ZComponent.NotifyListeners(uiContext);
            uiContext.UpdateGameTime(gameTime);

            // TODO: Add your update logic here
            uiContext.Camera.Update(uiContext);
            mainGameObject.Update(uiContext);

            uiContext.UpdateKeys();
            base.Update(gameTime);
        }