| Posted: 10:27pm 04 Nov 2020 |
Copy link to clipboard |
 Print this post |
|
Hello,
I have the following test program. Once started, it waits for a key. Press any single letter and you can see, the key is never released. e.g. "s" has a permanent output of "1 115" The device does not recognize, that there is nokey pressed. But as soon as you press the next key, the program stops and works correctly.
Seems, the keydown functions becomes confused by the "page write/blit" statements.
my firmware version is 5.05.05.
option explicit option default none option base 0 mode 1,8 cls
dim integer k dim a$ dim string Fname = "dummy.bmp"
do a$=inkey$ loop until a$ <> "" k=keydown(1) do while inkey$ <> "": loop
page write 2 blit 0,0,0,0,MM.HRES,MM.VRES,0 page write 0 blit 0,0,0,0,MM.HRES,MM.VRES,1 save image Fname,0,0,512,256 blit 0,0,0,0,MM.HRES,MM.VRES,2 page write 0
do print keydown(0), keydown(1) loop until keydown(0) = 0
end
|