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); } }
public void ClearPendingInput() => InputQueue.Clear();
private void Clear() { mCore.Clear(); InputQueue.Clear(); OutputQueue.Clear(); }