mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 05:40:20 +02:00
Amiga: keyboard prevent double keys on GetKeyEvent, if called without PollKeyEvent
git-svn-id: trunk@45196 -
This commit is contained in:
parent
c0ffa18ee2
commit
c6b0195c5f
@ -485,6 +485,9 @@ begin
|
|||||||
repeat
|
repeat
|
||||||
WaitPort(VideoWindow^.UserPort);
|
WaitPort(VideoWindow^.UserPort);
|
||||||
Res := SysPollKeyEvent;
|
Res := SysPollKeyEvent;
|
||||||
|
// remove event from KeyQueue, because we return it here,
|
||||||
|
// else we get double keys if GetKeyevent is called without a PollKeyEvent called first
|
||||||
|
KeyQueue := 0;
|
||||||
until Res <> 0;
|
until Res <> 0;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user