mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +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
|
||||
WaitPort(VideoWindow^.UserPort);
|
||||
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;
|
||||
end else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user