Amiga: keyboard prevent double keys on GetKeyEvent, if called without PollKeyEvent

git-svn-id: trunk@45196 -
This commit is contained in:
marcus 2020-04-30 19:14:51 +00:00
parent c0ffa18ee2
commit c6b0195c5f

View File

@ -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