mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:29:32 +02:00
* issue sleep while polling keyboard
git-svn-id: trunk@8690 -
This commit is contained in:
parent
7429c4871b
commit
e70f1a26db
@ -63,8 +63,8 @@ var
|
||||
K: TKbdKeyInfo;
|
||||
begin
|
||||
KbdGetFocus (IO_Wait, Handle);
|
||||
while (KbdCharIn (K, IO_Wait, Handle) <> No_Error)
|
||||
or (K.fbStatus and $40 = 0) do
|
||||
while (KbdCharIn (K, IO_NoWait, Handle) <> No_Error)
|
||||
or (K.fbStatus and $41 <> $40) do
|
||||
DosSleep (5);
|
||||
with K do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user