Esempio n. 1
0
        public void QueueInput(IReadOnlyCollection <AsciiKey> keys)
        {
            //0.K
            foreach (var key in keys)
            {
                // Escape key processing may skip the normal input queue,
                // to make 'Quit Game' as reliably available as possible.
                if (key == Keys.Escape && ShouldClearQueueOnEscape())
                {
                    InputQueue.Clear();
                    return;
                }

                InputQueue.Enqueue(key);
            }
        }
Esempio n. 2
0
 public void ClearPendingInput() => InputQueue.Clear();
Esempio n. 3
0
 private void Clear()
 {
     mCore.Clear();
     InputQueue.Clear();
     OutputQueue.Clear();
 }