I found this problem with Multikey command.Although keybuffer is cleared with Inkey (as written in manual), in second test for Escape it has again value.
In proggy I have this line for shortjump out of writing more text or drawing more lines in For-Next cycles, but overjumped everything, even keybuffer cleared.
Written code repeats the same problem.So I am not sured, if it is a bug or not; where Multikey takes value from ?and howto totally clear that one ?
Code: Select all
#include "fbgfx.bi"
ScreenRes 1024,752,32,8,FB.GFX_no_frame
Width 128,47
Dim Shared As String fv
Print "Press Esc key, or qQ to end"
Do
Sleep 1,1
fv= InKey
If fv<>"" Then
Cls:? "qQ to Quit"
Locate 8,10:? "fv= ";fv
'If MULTIKEY(&h1) Then
If MULTIKEY(fb.SC_ESCAPE) Then
Locate 5,10:? "Esc 1 pressed...",
? " fv=";fv ,
While Inkey<>""
? " clearing1";
Wend
? "empty",
fv= Inkey:? " fv=";fv
End If
While Inkey<>""
? " clearing2";
Wend
?
'If MULTIKEY(&h1) Then
If MULTIKEY(fb.SC_ESCAPE) Then
' WHERE it takes the value from ??, inkey was cleared !
Locate 6,10:? "Esc 2 pressed...",
? " fv=";fv,
While Inkey<>""
? " clearing3";
Wend
? "empty",
fv= Inkey:? " fv=";fv
End If
While Inkey<>""
? " clearing4";
Wend
?
End If
Loop Until fv="q"
End
Pete