PurgeInput now purges local keyboard input in windows too

This commit is contained in:
mysticbbs 2013-04-22 13:36:19 -04:00
parent 3bc773b82c
commit 6144608de7
1 changed files with 5 additions and 0 deletions

View File

@ -2162,12 +2162,17 @@ Begin
End;
Procedure TBBSIO.PurgeInputBuffer;
{$IFDEF WINDOWS}
Var
Ch : Char;
{$ENDIF}
Begin
{$IFDEF UNIX}
While Input.KeyPressed Do Input.ReadKey;
{$ENDIF}
{$IFDEF WINDOWS}
If Not TBBSCore(Core).LocalMode Then TBBSCore(Core).Client.PurgeInputData(100);
If TBBSCore(Core).LocalMode Then While Input.KeyPressed Do Ch := Input.ReadKey;
{$ENDIF}
End;