mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:14:25 +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;
|
K: TKbdKeyInfo;
|
||||||
begin
|
begin
|
||||||
KbdGetFocus (IO_Wait, Handle);
|
KbdGetFocus (IO_Wait, Handle);
|
||||||
while (KbdCharIn (K, IO_Wait, Handle) <> No_Error)
|
while (KbdCharIn (K, IO_NoWait, Handle) <> No_Error)
|
||||||
or (K.fbStatus and $40 = 0) do
|
or (K.fbStatus and $41 <> $40) do
|
||||||
DosSleep (5);
|
DosSleep (5);
|
||||||
with K do
|
with K do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user