NScumm.Scumm.ScummEngine7.ProcessInput C# (CSharp) Метод

ProcessInput() защищенный Метод

protected ProcessInput ( ) : void
Результат void
        protected internal override void ProcessInput()
        {
            var cutsceneExitKeyEnabled = (!VariableCutSceneExitKey.HasValue || Variables[VariableCutSceneExitKey.Value] != 0);

            // VAR_VERSION_KEY (usually ctrl-v) is used in COMI, Dig and FT to trigger
            // a version dialog, unless VAR_VERSION_KEY is set to 0. However, the COMI
            // version string is hard coded in the engine, hence we don't invoke
            // versionDialog for it. Dig/FT version strings are partly hard coded, too.
//            if (Game.GameId != GameId.CurseOfMonkeyIsland && 0 != Variables[VariableVersionKey] &&
//                _inputManager.IsKeyDown(KeyCode.V) && _inputManager.IsKeyDown(KeyCode.Control)) {
//                VersionDialog();
//
//            } else 
            if (cutsceneExitKeyEnabled && _inputState.IsKeyDown(KeyCode.Escape))
            {
                // Skip cutscene (or active SMUSH video).
                if (SmushActive)
                {
                    if (Game.GameId == GameId.FullThrottle)
                    {
                        Insane.EscapeKeyHandler();
                    }
                    else
                        SmushVideoShouldFinish = true;
                    _skipVideo = true;
                }
                else
                {
                    AbortCutscene();
                }

                mouseAndKeyboardStat = KeyCode.Escape;
            }
            else
            {
                base.ProcessInput();
            }

            if (_skipVideo && !SmushActive)
            {
                AbortCutscene();
                mouseAndKeyboardStat = KeyCode.Escape;
                _skipVideo = false;
            }
        }