Пример #1
0
        public void UpdateLabelsAfterPoll(GameTime gameTime, MouseInput mouseInput, Keyboard.KeyboardInput keyboardInput)
        {
            _mouseLabels[MouseLabelTypes.CurrentState].Text       = "Current State: " + mouseInput.CurrentStateAsString();
            _keyboardLabels[KeyboardLabelTypes.CurrentState].Text = "Current State: " + keyboardInput.GetCurrentStateTypeName();

            foreach (var label in _mouseLabels.Values)
            {
                label.Update(gameTime, _realTimer);
            }

            foreach (var label in _keyboardLabels.Values)
            {
                label.Update(gameTime, _realTimer);
            }
        }