Ballz.Input.InputTranslator.ProcessRawInput C# (CSharp) Метод

ProcessRawInput() приватный Метод

Processes the raw input and emits corresponding Events. TODO: add GamePad Support for raw inputs.
private ProcessRawInput ( ) : void
Результат void
        private void ProcessRawInput()
        {
            //the back key is supposed to switch back to processed InputMode
            //note that the RAW inputs themselves are processed by the RawHandler function.
            if (Keyboard.GetState().IsKeyDown(Keys.Escape) || Keyboard.GetState().IsKeyDown(Keys.Enter))
            {
                Mode = InputMode.PROCESSED;
                OnInput(InputMessage.MessageType.ControlsBack, true);
            }

            if (Keyboard.GetState().IsKeyDown(Keys.Back))
            {
                OnInput(InputMessage.MessageType.RawBack);
            }
        }