public override void Update(TimerDevice td)
        {
            base.Update(td);
#if PROFILE
            if (!_isHudOn)
            {
                _numbercontrolRefreshRate.Value = (int)(10.0f / td.DeltaInSeconds);
            }
#endif
            if (_backAndSettingsButtonVisibilityCounter > 0 && --_backAndSettingsButtonVisibilityCounter == 0)
            {
                _buttonBack.IsVisible     = false;
                _buttonSettings.IsVisible = false;
            }

            _labelInfoText.IsVisible = _infoTextVisibilityTimer > 0;
            if (_infoTextVisibilityTimer > 0)
            {
                _infoTextVisibilityTimer -= td.DeltaInSeconds;
            }

            if (_hud_buttonFpsMinus.IsPressed)
            {
                _fpsChangeDirection = -1;
            }
            else if (_hud_buttonFpsPlus.IsPressed)
            {
                _fpsChangeDirection = 1;
            }
            else
            {
                _fpsChangeDirection = 0;
            }

            if (_hud_controlCollection.IsVisible)
            {
                _hud_numbercontrolFPS.Value = _gameControl.CurrentFrameRate;
                if (_fpsChangeDirection == 0)
                {
                    _fpsChangeTimer = 0;
                }
                else
                {
                    _fpsChangeTimer -= td.DeltaInSeconds;
                    if (_fpsChangeTimer < 0)
                    {
                        _fpsChangeTimer += 0.25f;
                        _gameControl.ProposeNewFrameRate(_hud_numbercontrolFPS.Value + _fpsChangeDirection);
                    }
                }
            }
        }
        public void Update(TimerDevice td)
        {
            if (_emulationOff)
            {
                return;
            }

            _rotCounter -= td.DeltaTicks;
            if (_rotCounter > 0)
            {
                return;
            }
            _rotCounter += _rotCounterRate;

            if (_direction == 0)
            {
                return;
            }

            _curGrayCode += _direction;
            _curGrayCode &= 3;

            _inputState.RaiseInput(_jackNo, _mapping[_curGrayCode], true);
        }
Exemple #3
0
 public void Update(TimerDevice td)
 {
 }
 public void Update(TimerDevice td)
 {
     _currentPage.Update(td);
 }