PurgeInput now purges local keyboard input in windows too
This commit is contained in:
parent
3bc773b82c
commit
6144608de7
|
@ -2162,12 +2162,17 @@ Begin
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TBBSIO.PurgeInputBuffer;
|
Procedure TBBSIO.PurgeInputBuffer;
|
||||||
|
{$IFDEF WINDOWS}
|
||||||
|
Var
|
||||||
|
Ch : Char;
|
||||||
|
{$ENDIF}
|
||||||
Begin
|
Begin
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
While Input.KeyPressed Do Input.ReadKey;
|
While Input.KeyPressed Do Input.ReadKey;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF WINDOWS}
|
{$IFDEF WINDOWS}
|
||||||
If Not TBBSCore(Core).LocalMode Then TBBSCore(Core).Client.PurgeInputData(100);
|
If Not TBBSCore(Core).LocalMode Then TBBSCore(Core).Client.PurgeInputData(100);
|
||||||
|
If TBBSCore(Core).LocalMode Then While Input.KeyPressed Do Ch := Input.ReadKey;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue